mirror of
https://github.com/django/django.git
synced 2025-09-26 20:19:16 +00:00
[py3] Fixed a loop that changed dictionary size.
This commit is contained in:
parent
396357741b
commit
12cda89ffe
1 changed files with 1 additions and 1 deletions
|
@ -489,7 +489,7 @@ class Field(object):
|
||||||
# Many of the subclass-specific formfield arguments (min_value,
|
# Many of the subclass-specific formfield arguments (min_value,
|
||||||
# max_value) don't apply for choice fields, so be sure to only pass
|
# max_value) don't apply for choice fields, so be sure to only pass
|
||||||
# the values that TypedChoiceField will understand.
|
# 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',
|
if k not in ('coerce', 'empty_value', 'choices', 'required',
|
||||||
'widget', 'label', 'initial', 'help_text',
|
'widget', 'label', 'initial', 'help_text',
|
||||||
'error_messages', 'show_hidden_initial'):
|
'error_messages', 'show_hidden_initial'):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue