mirror of
https://github.com/django/django.git
synced 2025-08-04 10:59:45 +00:00
Corrected REPL example in forms docs for Python 3.
This commit is contained in:
parent
21046e7773
commit
c3e638112d
1 changed files with 2 additions and 2 deletions
|
@ -1215,8 +1215,8 @@ by setting the name of the field to ``None`` on the subclass. For example::
|
|||
>>> class ChildForm(ParentForm):
|
||||
... name = None
|
||||
|
||||
>>> ChildForm().fields.keys()
|
||||
... ['age']
|
||||
>>> list(ChildForm().fields)
|
||||
['age']
|
||||
|
||||
.. _form-prefix:
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue