Skip to content
Browse files

Fixed #8569 -- Ensure that apps are correctly set up before introspec…

…ting them

in admin validation.

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent 255bf69 commit 8226b8c9576107c281d15040b17fa696cdaf87c6 @malcolmt malcolmt committed
Showing with 4 additions and 0 deletions.
  1. +4 −0 django/contrib/admin/
4 django/contrib/admin/
@@ -17,6 +17,10 @@ def validate(cls, model):
classmethod in the end if it is provided in cls. The signature of the
custom validation classmethod should be: def validate(cls, model).
+ # Before we can introspect models, they need to be fully loaded so that
+ # inter-relations are set up correctly. We force that here.
+ models.get_apps()
opts = model._meta
validate_base(cls, model)

0 comments on commit 8226b8c

Please sign in to comment.
Something went wrong with that request. Please try again.