django1/docs/ref/forms
Marc Tamlyn be733bf672 [1.7.x] 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.

Backport of 9fb0f5dddc from master
2014-05-24 13:11:50 +01:00
..
api.txt [1.7.x] Fixed #22510 -- Harden field removal to only None. 2014-05-24 13:11:50 +01:00
fields.txt Fixed #21860 -- Added to_field_name to ModelChoiceField docs. 2014-03-16 15:40:52 -04:00
formsets.txt Fixed #9532 -- Added min_num and validate_min on formsets. 2013-09-19 13:11:49 -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 [1.7.x] Fixed #17642 -- Added min_num support to modelformsets, inlines, and the admin. 2014-05-15 07:02:06 -04:00
validation.txt [1.7.x] Fixed #22216 -- Added Form.non_field_errors to form API doc. 2014-04-05 18:17:13 -04:00
widgets.txt [1.7.x] Fixed case in form widgets docs 2014-05-16 17:44:20 -04:00