Browse files

[1.1.X] Fixed #12067 - check_dependencies in contrib.admin.sites not …

…triggered using new style admin include

Thanks to robhudson for report and patch.

Backport of r11648 from trunk

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent b06d1be commit 84dac3aa8245b4fd4b399989c729a1775e2bbbfe @spookylukey spookylukey committed Oct 24, 2009
Showing with 3 additions and 0 deletions.
  1. +3 −0 django/contrib/admin/
@@ -191,6 +191,9 @@ def inner(request, *args, **kwargs):
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)

0 comments on commit 84dac3a

Please sign in to comment.