From 352b319aad3b60e79584a1c29ff2024ca170fa58 Mon Sep 17 00:00:00 2001 From: Andrea Fazzi Date: Tue, 15 Mar 2022 11:34:20 +0100 Subject: [PATCH] Preload School.Region for user different from school --- orm/participant.go | 1 + 1 file changed, 1 insertion(+) diff --git a/orm/participant.go b/orm/participant.go index ee5503bc..796f0467 100644 --- a/orm/participant.go +++ b/orm/participant.go @@ -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 {