django1/docs/topics/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
..
formsets.txt Fixed spelling mistakes in docs. 2014-02-28 21:03:46 -05:00
index.txt [1.7.x] Various documentation typo/spelling fixes 2014-04-22 20:10:58 -04:00
media.txt Fixed #20772 -- Fixed minor typo in form media docs. 2013-07-19 15:48:38 +07:00
modelforms.txt [1.7.x] Fixed #22510 -- Harden field removal to only None. 2014-05-24 13:11:50 +01:00