1
0
mirror of https://github.com/django/django.git synced 2024-12-23 09:36:06 +00:00

Corrected example in Form.has_changed() docs.

This commit is contained in:
Tim Graham 2014-12-05 13:17:14 -05:00
parent f0c7a6f360
commit ebfadb8080

View File

@ -268,7 +268,7 @@ form data has been changed from the initial data.
... 'message': 'Hi there',
... 'sender': 'foo@example.com',
... 'cc_myself': True}
>>> f = ContactForm(initial=data)
>>> f = ContactForm(data, initial=data)
>>> f.has_changed()
False