Commit 1b4d18e8 authored by Daniel Klaffenbach's avatar Daniel Klaffenbach 🐍

Merge branch 'master' of

parents fac1e7ad b43231cb
Pipeline #17036 passed with stage
in 37 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