Django

Code

Changeset 8605

Show
Ignore:
Timestamp:
08/26/08 18:06:30 (10 months ago)
Author:
mtredinnick
Message:

Fixed #8569 -- Ensure that apps are correctly set up before introspecting them
in admin validation.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/django/contrib/admin/validation.py

    r8604 r8605  
    1818    custom validation classmethod should be: def validate(cls, model). 
    1919    """ 
     20    # Before we can introspect models, they need to be fully loaded so that 
     21    # inter-relations are set up correctly. We force that here. 
     22    models.get_apps() 
     23 
    2024    opts = model._meta 
    2125    validate_base(cls, model)