Commit 4fe2e9df authored by Emmy Vouriot's avatar Emmy Vouriot Committed by Arnaud Fontaine

copy list so dict can be modified during iteration

parent 1a08fecc
......@@ -340,7 +340,8 @@ class ProxyField(ZMIField):
tales.pop(key, None)
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:
result.pop(key)
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