Skip to content

Commit

Permalink
Run the django_autoconfig defaults first, so we get some sensible def…
Browse files Browse the repository at this point in the history
…aults in there to fix django.contrib.admin autoconfig.
  • Loading branch information
mikebryant committed Oct 13, 2014
1 parent abef49c commit 272f44c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion django_autoconfig/autoconfig.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ def configure_settings(settings):

while changes:
changes = 0
for app_name in list(settings['INSTALLED_APPS']) + ['django_autoconfig']:
for app_name in ['django_autoconfig'] + list(settings['INSTALLED_APPS']):
if app_name not in settings.get('AUTOCONFIG_DISABLED_APPS', ()):
app_module = importlib.import_module(app_name)
else:
Expand Down

0 comments on commit 272f44c

Please sign in to comment.