Corrected example in Form.has_changed() docs.
This commit is contained in:
parent
f0c7a6f360
commit
ebfadb8080
|
@ -268,7 +268,7 @@ form data has been changed from the initial data.
|
||||||
... 'message': 'Hi there',
|
... 'message': 'Hi there',
|
||||||
... 'sender': 'foo@example.com',
|
... 'sender': 'foo@example.com',
|
||||||
... 'cc_myself': True}
|
... 'cc_myself': True}
|
||||||
>>> f = ContactForm(initial=data)
|
>>> f = ContactForm(data, initial=data)
|
||||||
>>> f.has_changed()
|
>>> f.has_changed()
|
||||||
False
|
False
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue