Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

…hanks CHasenpflug for noticing this.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@8188 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit d7dc2d39857ccc1fce62f11c355cd1c5696bc08c 1 parent c4ba628
@brosner brosner authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  django/contrib/admin/__init__.py
View
2  django/contrib/admin/__init__.py
@@ -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

0 comments on commit d7dc2d3

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