summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAymeric Augustin <aymeric.augustin@m4x.org>2014-01-01 19:11:54 +0100
committerAymeric Augustin <aymeric.augustin@m4x.org>2014-01-01 19:12:46 +0100
commit30a42a4fc36edfad51f0e4f28e5c776434302d1c (patch)
tree2f30062b2a0a244fa4a94d120776d4d4c09eb82b
parent791142e8b3e35bb387f4efbb6c7f73f2171a7164 (diff)
Adjusted previous commit for Python 3.
-rw-r--r--django/core/management/__init__.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/django/core/management/__init__.py b/django/core/management/__init__.py
index 33cef35b4c..5966d8929e 100644
--- a/django/core/management/__init__.py
+++ b/django/core/management/__init__.py
@@ -120,10 +120,10 @@ def get_commands():
# a settings module.
django.setup()
app_configs = apps.get_app_configs()
- app_names = [app_config.name for app_config in reversed(app_configs)]
+ app_names = [app_config.name for app_config in app_configs]
# Find and load the management module for each installed app.
- for app_name in app_names:
+ for app_name in reversed(app_names):
try:
path = find_management_module(app_name)
commands.update({name: app_name for name in find_commands(path)})