django/tests/model_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
..
__init__.py Merged regressiontests and modeltests into the test root. 2013-02-26 14:36:57 +01:00
models.py Removed hard-coded help_text for ManyToManyFields that use a SelectMultiple widget 2014-03-21 19:10:07 -04:00
test.png Merged regressiontests and modeltests into the test root. 2013-02-26 14:36:57 +01:00
test2.png Merged regressiontests and modeltests into the test root. 2013-02-26 14:36:57 +01:00
tests.py Fixed #22510 -- Harden field removal to only None. 2014-05-24 13:10:50 +01:00