summaryrefslogtreecommitdiff
path: root/tests/migrations/test_migrations_no_default
diff options
context:
space:
mode:
authorMarc Tamlyn <marc.tamlyn@gmail.com>2014-05-24 10:52:18 +0100
committerMarc Tamlyn <marc.tamlyn@gmail.com>2014-05-24 13:10:50 +0100
commit9fb0f5dddc4cf7f2d294af1bcde2c359cffd90a5 (patch)
tree5c007e3490626084d43267def381a57a08833c11 /tests/migrations/test_migrations_no_default
parentf47e226ff7d2460ebe587d4fc1565b113b1c709f (diff)
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.
Diffstat (limited to 'tests/migrations/test_migrations_no_default')
0 files changed, 0 insertions, 0 deletions