mirror of
https://github.com/Hopiu/wagtail.git
synced 2026-04-20 23:00:58 +00:00
Fix flake8 complaint in group_models_by_index (#2993)
F812 list comprehension redefines 'models' from line 13
This commit is contained in:
parent
67e46f9a33
commit
e1c3a751ca
1 changed files with 2 additions and 2 deletions
|
|
@ -46,8 +46,8 @@ def group_models_by_index(backend, models):
|
|||
models_by_index[index.name].append(model)
|
||||
|
||||
return collections.OrderedDict([
|
||||
(indices[index_name], models)
|
||||
for index_name, models in models_by_index.items()
|
||||
(indices[index_name], index_models)
|
||||
for index_name, index_models in models_by_index.items()
|
||||
])
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue