django1/django/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
..
extras Fixed #13970 -- Made SelectDateWidget use the standard widget is_required attribute 2013-11-08 16:58:17 +01:00
__init__.py Fixed #21489 -- Make formsets directly importable from django.forms. 2013-11-25 19:16:19 -05:00
fields.py [1.7.x] Fix many many typos in comments throughout the codebase 2014-04-26 14:35:57 -04:00
forms.py [1.7.x] Fixed #22510 -- Harden field removal to only None. 2014-05-24 13:11:50 +01:00
formsets.py [1.7.x] Fixed #22628 -- Took initial forms into account when combining FormSet.min_num and FormSet.extra. 2014-05-16 06:37:05 -04:00
models.py [1.7.x] Fixed #17642 -- Added min_num support to modelformsets, inlines, and the admin. 2014-05-15 07:02:06 -04:00
util.py [1.7.x] Add a useful stacklevel to some RemovedInDjango19Warnings 2014-03-27 06:11:01 -04:00
utils.py Fixed #21188 -- Introduced subclasses for to-be-removed-in-django-XX warnings 2014-03-08 09:57:40 +01:00
widgets.py [1.7.x] Fixed #22502 -- Fixed microseconds/default/form interaction 2014-05-10 10:58:51 +02:00