mirror of
https://github.com/django/django.git
synced 2025-06-05 03:29:12 +00:00
[1.6.x] Corrected example in Form.has_changed() docs.
Backport of ebfadb808043c689b19cfee818c10f63866ee8fc from master
This commit is contained in:
parent
fdbe038ced
commit
9abfe2c02d
@ -177,7 +177,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…
x
Reference in New Issue
Block a user