Commit 1aa3952f authored by Emmy Vouriot's avatar Emmy Vouriot Committed by Jérome Perrin

copy list so dict can be modified during iteration

parent d9a8d458
...@@ -340,7 +340,8 @@ class ProxyField(ZMIField): ...@@ -340,7 +340,8 @@ class ProxyField(ZMIField):
tales.pop(key, None) tales.pop(key, None)
proxied_field = self.getTemplateField() proxied_field = self.getTemplateField()
for key, value in result.items(): restultitems = result.items() if six.PY2 else list(result.items())
for key, value in restultitems:
if key not in surcharge_list: if key not in surcharge_list:
result.pop(key) result.pop(key)
if key in self.values: if key in self.values:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment