diff options
| author | Jon Dufresne <jon.dufresne@gmail.com> | 2017-05-27 16:28:37 -0700 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2017-05-27 19:28:58 -0400 |
| commit | 2c03e145866337a0dded66e0c87ce235cd29581c (patch) | |
| tree | 3d08ea291d069581de09c1914241a608f695c64b | |
| parent | b9abdd92ab21a796943e8047e778eebc671c8c00 (diff) | |
[1.11.x] Corrected REPL example in forms docs for Python 3.
Backport of c3e638112d2a96c8d678524903f37b13c6692188 from master
| -rw-r--r-- | docs/ref/forms/api.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/ref/forms/api.txt b/docs/ref/forms/api.txt index c74cfaed48..38d1348da1 100644 --- a/docs/ref/forms/api.txt +++ b/docs/ref/forms/api.txt @@ -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: |
