kopia lustrzana https://github.com/wagtail/wagtail
Fix: Avoid mutation of list whilst iterating it
rodzic
c1a23b4bd3
commit
fe8e618232
|
@ -707,7 +707,7 @@ class AbstractImage(ImageFileMixin, CollectionMember, index.Indexed, models.Mode
|
|||
filter = filter_map[existing.filter_spec]
|
||||
return_value[filter] = existing
|
||||
|
||||
for new in to_create:
|
||||
for new in list(to_create):
|
||||
if (
|
||||
new.filter_spec == existing.filter_spec
|
||||
and new.focal_point_key == existing.focal_point_key
|
||||
|
|
Ładowanie…
Reference in New Issue