Skip to content

Commit

Permalink
Fixed #12067 - check_dependencies in contrib.admin.sites not triggere…
Browse files Browse the repository at this point in the history
…d 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
  • Loading branch information
spookylukey committed Oct 24, 2009
1 parent 2b2f92a commit c44fdf6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions django/contrib/admin/sites.py
Expand Up @@ -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)
Expand Down

0 comments on commit c44fdf6

Please sign in to comment.