summaryrefslogtreecommitdiff
path: root/tests/admin_scripts/complex_app/admin/foo.py
diff options
context:
space:
mode:
authorLoic Bistuer <loic.bistuer@sixmedia.com>2013-10-14 20:45:30 +0700
committerTim Graham <timograham@gmail.com>2013-10-14 10:55:41 -0400
commit8222a48253e61f4d3c1d30156a5f9e0d59a7c56c (patch)
tree45ed222f5c6714a47290cac5975b0df6d72f43db /tests/admin_scripts/complex_app/admin/foo.py
parentda181056a9e111c7564127cb67df6f186a485c17 (diff)
[1.6.x] 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. Backport of 54cd930baf from master
Diffstat (limited to 'tests/admin_scripts/complex_app/admin/foo.py')
0 files changed, 0 insertions, 0 deletions