From d0f7c7f59abaab88335c840f5a2d886434381100 Mon Sep 17 00:00:00 2001 From: Simon Charette Date: Tue, 27 May 2014 18:28:13 -0400 Subject: [PATCH] Argument to `reversed` must be a sequence on Py3. --- django/core/management/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django/core/management/__init__.py b/django/core/management/__init__.py index 80356d374a..e1a7a16c88 100644 --- a/django/core/management/__init__.py +++ b/django/core/management/__init__.py @@ -67,7 +67,7 @@ def get_commands(): if not settings.configured: return commands - for app_config in reversed(apps.get_app_configs()): + for app_config in reversed(list(apps.get_app_configs())): path = os.path.join(app_config.path, 'management') commands.update({name: app_config.name for name in find_commands(path)})