From aa45da15421ddb1549a7060e5c189f8350a29166 Mon Sep 17 00:00:00 2001 From: Jinzhu Date: Sun, 14 Feb 2016 21:47:13 +0800 Subject: [PATCH] Preload first before run after find --- callback_query.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/callback_query.go b/callback_query.go index 5473f232..b80f5be5 100644 --- a/callback_query.go +++ b/callback_query.go @@ -115,6 +115,6 @@ func AfterQuery(scope *Scope) { func init() { DefaultCallback.Query().Register("gorm:query", Query) - DefaultCallback.Query().Register("gorm:after_query", AfterQuery) DefaultCallback.Query().Register("gorm:preload", Preload) + DefaultCallback.Query().Register("gorm:after_query", AfterQuery) }