0
0
mirror of https://github.com/django/django.git synced 2024-12-01 15:42:04 +01:00
django/docs/ref/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
..
api.txt Fixed #22510 -- Harden field removal to only None. 2014-05-24 13:10:50 +01:00
fields.txt Fixed #22533 -- Added label_suffix parameter to form fields. 2014-05-13 09:09:33 -04:00
formsets.txt Removed versionadded/changed annotations for 1.6. 2014-03-24 11:42:56 -04:00
index.txt Fixed #20084 -- Provided option to validate formset max_num on server. 2013-03-21 01:27:24 -07:00
models.txt Fixed #17642 -- Added min_num support to modelformsets, inlines, and the admin. 2014-05-15 07:25:35 -04:00
validation.txt Fixed #22216 -- Added Form.non_field_errors to form API doc. 2014-04-05 18:16:01 -04:00
widgets.txt Fixed case in form widgets docs 2014-04-05 16:26:11 +02:00