diff --git a/docs/ref/forms/api.txt b/docs/ref/forms/api.txt index 3b0db3a79af..70f455fefee 100644 --- a/docs/ref/forms/api.txt +++ b/docs/ref/forms/api.txt @@ -299,6 +299,8 @@ provided in :attr:`~Form.initial`. It returns an empty list if no data differs. >>> f = ContactForm(request.POST, initial=data) >>> if f.has_changed(): ... print("The following fields changed: %s" % ", ".join(f.changed_data)) + >>> f.changed_data + ['subject', 'message'] Accessing the fields from the form ==================================