From c44fdf6a1ec2e9777948e193b9830679a19178eb Mon Sep 17 00:00:00 2001 From: Luke Plant Date: Sat, 24 Oct 2009 10:13:24 +0000 Subject: [PATCH] Fixed #12067 - check_dependencies in contrib.admin.sites not triggered using new style admin include Thanks to robhudson for report and patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@11648 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- django/contrib/admin/sites.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/django/contrib/admin/sites.py b/django/contrib/admin/sites.py index 5f397ecb01..2e81cbb8b9 100644 --- a/django/contrib/admin/sites.py +++ b/django/contrib/admin/sites.py @@ -191,6 +191,9 @@ class AdminSite(object): def get_urls(self): from django.conf.urls.defaults import patterns, url, include + if settings.DEBUG: + self.check_dependencies() + def wrap(view, cacheable=False): def wrapper(*args, **kwargs): return self.admin_view(view, cacheable)(*args, **kwargs)