Kaydet (Commit) d7dc2d39 authored tarafından Brian Rosner's avatar Brian Rosner

Fixed #8086 -- Removed 2.5 specific keyword argument to __import__. Thanks…

Fixed #8086 -- Removed 2.5 specific keyword argument to __import__. Thanks CHasenpflug for noticing this.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@8188 bcc190cf-cafb-0310-a4f2-bffc1f526a37
üst c4ba6282
......@@ -12,7 +12,7 @@ def autodiscover():
from django.conf import settings
for app in settings.INSTALLED_APPS:
try:
imp.find_module("admin", __import__(app, fromlist=[app.split(".")[-1]]).__path__)
imp.find_module("admin", __import__(app, {}, {}, [app.split(".")[-1]]).__path__)
except ImportError:
# there is no app admin.py, skip it
continue
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment