mirror of
https://github.com/django/django.git
synced 2025-08-04 10:59:45 +00:00
Fixed #8620 -- Updated the Form metaclass to support excluding fields by shadowing them.
This commit is contained in:
parent
ac5ec7b8bc
commit
b16dd1fe01
5 changed files with 52 additions and 0 deletions
|
@ -854,6 +854,13 @@ classes::
|
|||
<li>Instrument: <input type="text" name="instrument" /></li>
|
||||
<li>Haircut type: <input type="text" name="haircut_type" /></li>
|
||||
|
||||
.. versionadded:: 1.7
|
||||
|
||||
* It's possible to opt-out from a ``Field`` inherited from a parent class by
|
||||
shadowing it. While any non-``Field`` value works for this purpose, it's
|
||||
recommended to use ``None`` to make it explicit that a field is being
|
||||
nullified.
|
||||
|
||||
.. _form-prefix:
|
||||
|
||||
Prefixes for forms
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue