Author: lukeplant
Date: 2009-10-24 05:13:24 -0500 (Sat, 24 Oct 2009)
New Revision: 11648

Modified:
   django/trunk/django/contrib/admin/sites.py
Log:
Fixed #12067 - check_dependencies in contrib.admin.sites not triggered using 
new style admin include

Thanks to robhudson for report and patch.



Modified: django/trunk/django/contrib/admin/sites.py
===================================================================
--- django/trunk/django/contrib/admin/sites.py  2009-10-24 00:37:01 UTC (rev 
11647)
+++ django/trunk/django/contrib/admin/sites.py  2009-10-24 10:13:24 UTC (rev 
11648)
@@ -191,6 +191,9 @@
     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)


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-updates@googlegroups.com
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to