I've got a [https://github.com/django/django/pull/6483 pull request] that
adds test coverage and fixes the issue by running the `data` to
`has_changed` through `to_python` before comparing to the initial value.
This should cover other widgets beyond `HiddenInput` as long as they
return a value understood by `to_python` for `forms.BooleanField` and
`forms.NullBooleanField`.
--
Ticket URL: <https://code.djangoproject.com/ticket/26534>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* needs_better_patch: => 0
* version: 1.8 => master
* needs_tests: => 0
* needs_docs: => 0
Comment:
[https://github.com/django/django/pull/6483 PR]
--
Ticket URL: <https://code.djangoproject.com/ticket/26534#comment:1>
* stage: Unreviewed => Ready for checkin
--
Ticket URL: <https://code.djangoproject.com/ticket/26534#comment:2>
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"218175b09d244b9c7c84c2f2d5f478297251bbe9" 218175b0]:
{{{
#!CommitTicketReference repository=""
revision="218175b09d244b9c7c84c2f2d5f478297251bbe9"
Fixed #26534 -- Fixed boolean form fields has_changed() with hidden input.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/26534#comment:3>