django1/django/forms
Marc Tamlyn 9fb0f5dddc Fixed #22510 -- Harden field removal to only None.
Refs #8620.

If we allow any value to remove form fields then we get name clashes
with method names, media classes etc. There was a backwards
incompatibility introduced meaning ModelForm subclasses with declared
fields called media or clean would lose those fields.

Field removal is now only permitted by using the sentinel value None.
The docs have been slightly reworded to refer to removal of fields
rather than shadowing.

Thanks to gcbirzan for the report and initial patch, and several of the
core team for opinions.
2014-05-24 13:10:50 +01:00
..
extras Refactored some code in SelectDateWidget. 2014-04-10 13:03:23 -04:00
__init__.py Fixed #21489 -- Make formsets directly importable from django.forms. 2013-11-25 19:16:19 -05:00
fields.py Fixed #22533 -- Added label_suffix parameter to form fields. 2014-05-13 09:09:33 -04:00
forms.py Fixed #22510 -- Harden field removal to only None. 2014-05-24 13:10:50 +01:00
formsets.py Fixed #22628 -- Took initial forms into account when combining FormSet.min_num and FormSet.extra. 2014-05-16 06:38:24 -04:00
models.py Fixed #17642 -- Added min_num support to modelformsets, inlines, and the admin. 2014-05-15 07:25:35 -04:00
util.py Add a useful stacklevel to some RemovedInDjango19Warnings 2014-03-27 15:44:52 +13:00
utils.py Fixed #20684 -- Added support for HTML5 boolean attributes to form widgets. 2014-03-22 14:28:12 -04:00
widgets.py Fixed #22502 -- Fixed microseconds/default/form interaction 2014-05-10 10:56:39 +02:00