Kaydet (Commit) 12cda89f authored tarafından Aymeric Augustin's avatar Aymeric Augustin

[py3] Fixed a loop that changed dictionary size.

üst 39635774
......@@ -489,7 +489,7 @@ class Field(object):
# Many of the subclass-specific formfield arguments (min_value,
# max_value) don't apply for choice fields, so be sure to only pass
# the values that TypedChoiceField will understand.
for k in kwargs.keys():
for k in list(six.iterkeys(kwargs)):
if k not in ('coerce', 'empty_value', 'choices', 'required',
'widget', 'label', 'initial', 'help_text',
'error_messages', 'show_hidden_initial'):
......
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