• Marc Tamlyn's avatar
    Fixed #22510 -- Harden field removal to only None. · 9fb0f5dd
    Marc Tamlyn yazdı
    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.
    9fb0f5dd
Adı
Son kayıt (commit)
Son güncelleme
.tx Loading commit data...
django Loading commit data...
docs Loading commit data...
extras Loading commit data...
scripts Loading commit data...
tests Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
.hgignore Loading commit data...
AUTHORS Loading commit data...
CONTRIBUTING.rst Loading commit data...
INSTALL Loading commit data...
LICENSE Loading commit data...
MANIFEST.in Loading commit data...
README.rst Loading commit data...
setup.cfg Loading commit data...
setup.py Loading commit data...