mirror of
https://github.com/django/django.git
synced 2025-10-26 23:26:08 +00:00
[py3] Replace filter/lambda by list comprehensions
This is more idiomatic and avoids returning a list on Python 2 and an iterator on Python 3.
This commit is contained in:
@@ -75,7 +75,7 @@ class Command(NoArgsCommand):
|
||||
(opts.auto_created and converter(opts.auto_created._meta.db_table) in tables))
|
||||
|
||||
manifest = SortedDict(
|
||||
(app_name, filter(model_installed, model_list))
|
||||
(app_name, list(filter(model_installed, model_list)))
|
||||
for app_name, model_list in all_models
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user