1
0
mirror of https://github.com/django/django.git synced 2025-10-31 09:41:08 +00:00

Argument to reversed must be a sequence on Py3.

This commit is contained in:
Simon Charette
2014-05-27 18:28:13 -04:00
parent fed2877cf1
commit d0f7c7f59a

View File

@@ -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)})