Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Reverted [8174]. It is causing some serious breakage right now. Need …

…to investigate more.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@8183 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 85af2641125dfdd141f744f37be616499108ace9 1 parent 9d3c921
Brian Rosner authored August 01, 2008

Showing 1 changed file with 2 additions and 5 deletions. Show diff stats Hide diff stats

  1. 7  django/contrib/admin/__init__.py
7  django/contrib/admin/__init__.py
@@ -8,12 +8,9 @@ def autodiscover():
8 8
     not present. This forces an import on them to register any admin bits they
9 9
     may want.
10 10
     """
11  
-    import imp
12 11
     from django.conf import settings
13 12
     for app in settings.INSTALLED_APPS:
14 13
         try:
15  
-            imp.find_module("admin", app.split("."))
  14
+            __import__("%s.admin" % app)
16 15
         except ImportError:
17  
-            # there is no admin.py in app, skip it.
18  
-            continue
19  
-        __import__("%s.admin" % app)
  16
+            pass

0 notes on commit 85af264

Please sign in to comment.
Something went wrong with that request. Please try again.