Preload School.Region for user different from school
This commit is contained in:
parent
3b7523cb22
commit
352b319aad
1 changed files with 1 additions and 0 deletions
|
@ -332,6 +332,7 @@ func (model *Participant) ReadAll(db *Database, args map[string]string, w http.R
|
|||
if err := db._db.
|
||||
Preload("Category").
|
||||
Preload("School").
|
||||
Preload("School.Region").
|
||||
Preload("Contests").
|
||||
Preload("Responses").
|
||||
Order("created_at").Find(&participants).Error; err != nil {
|
||||
|
|
Loading…
Reference in a new issue