Задать вопрос

Тел: +7 965 3737 888

447

Просмотров

1

Ответов

check if form has changed (deprecated)

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.

Вопрос полезен? Да0/Нет0
file_3610.py(75.0б)
None

Ответы (1):

Ответguettli:17.09.2008
Ответ полезен? Да0/Нет0

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.