0
0
mirror of https://github.com/django/django.git synced 2024-11-29 22:56:46 +01:00
django/docs/topics/forms
Loic Bistuer 54cd930baf Clarfied the ModelForm docs with respect to generated vs. declared fields.
The ModelForm docs suggested that fields defined declaratively override
default fields generated from the form Meta.

This is conceptually wrong, especially with inheritance in mind. Meta is
usually defined on the topmost ModelForm subclass, while fields can come
from anywhere in the MRO, especially base classes; therefore we suggested
that something defined in a base class override something from a subclass.

This patch rephrases the docs around the idea that Meta is used to generate
*missing* fields.

Refs #8620, #19617.

Thanks @mjtamlyn and @timgraham for the review.
2013-10-14 10:54:22 -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 #19695 -- Retitle "Form Media" to "Form Assets". 2013-07-08 13:59:54 -04:00
media.txt Fixed #20772 -- Fixed minor typo in form media docs. 2013-07-19 15:48:38 +07:00
modelforms.txt Clarfied the ModelForm docs with respect to generated vs. declared fields. 2013-10-14 10:54:22 -04:00