Ticket #12913: formfield_not_skipping_hidden_initial.diff
File formfield_not_skipping_hidden_initial.diff, 657 bytes (added by , 15 years ago) |
---|
-
django/db/models/fields/__init__.py
462 462 for k in kwargs.keys(): 463 463 if k not in ('coerce', 'empty_value', 'choices', 'required', 464 464 'widget', 'label', 'initial', 'help_text', 465 'error_messages' ):465 'error_messages', 'show_hidden_input'): 466 466 del kwargs[k] 467 467 defaults.update(kwargs) 468 468 return form_class(**defaults)