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
1 changed files with 1 additions and 1 deletions

View File

@ -67,7 +67,7 @@ def get_commands():
if not settings.configured: if not settings.configured:
return commands 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') path = os.path.join(app_config.path, 'management')
commands.update({name: app_config.name for name in find_commands(path)}) commands.update({name: app_config.name for name in find_commands(path)})