• Loic Bistuer's avatar
    Clarfied the ModelForm docs with respect to generated vs. declared fields. · 54cd930b
    Loic Bistuer yazdı
    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.
    54cd930b
Adı
Son kayıt (commit)
Son güncelleme
..
_ext Loading commit data...
_theme/djangodocs Loading commit data...
faq Loading commit data...
howto Loading commit data...
internals Loading commit data...
intro Loading commit data...
man Loading commit data...
misc Loading commit data...
ref Loading commit data...
releases Loading commit data...
topics Loading commit data...
Makefile Loading commit data...
README Loading commit data...
conf.py Loading commit data...
contents.txt Loading commit data...
glossary.txt Loading commit data...
index.txt Loading commit data...
make.bat Loading commit data...