This is deprecated. I don't use it anymore, since forms now have the attribute "has_changed".
The method form_changed() returns a boolean value. It is True if the submitted values of the bound and valid form are different than the initial values.
It works for me. Feedback welcome.
Set debug=True if you want to know what's going on.
1 | # code was removed, because django has form.changed_data since a long time.
|
More like this
- Generate and render HTML Table by LLyaudet 1 day, 23 hours ago
- My firs Snippets by GutemaG 5 days, 7 hours ago
- FileField having auto upload_to path by junaidmgithub 1 month, 1 week ago
- LazyPrimaryKeyRelatedField by LLyaudet 1 month, 2 weeks ago
- CacheInDictManager by LLyaudet 1 month, 2 weeks ago
Comments
At least since django 1.0 forms have method has_changed() and an attribute "changed_data". I (the author of this snippet) will use has_changed() instead of this snippet in new code.
#
Please login first before commenting.