[1.7.x] Corrected example in Form.has_changed() docs.
Backport of ebfadb8080
from master
This commit is contained in:
parent
58e0d6bdbc
commit
6a94c97729
|
@ -257,7 +257,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
|
||||
|
||||
|
|
Loading…
Reference in New Issue