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

copy list so dict can be modified during iteration

parent 036bae2f
......@@ -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