mirror of
https://github.com/django/django.git
synced 2025-04-14 04:22:21 +00:00
[1.11.x] Corrected REPL example in forms docs for Python 3.
Backport of c3e638112d2a96c8d678524903f37b13c6692188 from master
This commit is contained in:
parent
b9abdd92ab
commit
2c03e14586
@ -1208,8 +1208,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…
x
Reference in New Issue
Block a user