Commit b43231cb authored by Daniel Schreiber's avatar Daniel Schreiber

fix python 3 incompatibility

parent a0679d59
Pipeline #16992 passed with stage
in 34 seconds
......@@ -26,7 +26,9 @@ class DateField(Field):
# get datepicker arguments from kwargs
self.datepicker_options = {}
kwargs_keys = kwargs.keys()
for i in kwargs_keys:
# in python3 kwargs_keys is an interator which raises an exception because
# we change the underlying dict. -> converting to list decouples the two
for i in list(kwargs_keys):
if i.startswith('datepicker_'):
arg = kwargs.pop(i)
#strip the datepicker_prefix
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