diff --git a/docs/ref/forms/api.txt b/docs/ref/forms/api.txt index 72ae044090..e68222f977 100644 --- a/docs/ref/forms/api.txt +++ b/docs/ref/forms/api.txt @@ -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: