#37122: JSONField has_changed doesn't reflect disabled correctly
------------------------+------------------------------------
Reporter: alex | Owner: (none)
Type: Bug | Status: new
Component: Forms | Version: 6.0
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 1 | UI/UX: 0
------------------------+------------------------------------
Changes (by Simon Charette):
* component: Uncategorized => Forms
* has_patch: 1 => 0
* stage: Unreviewed => Accepted
* type: Uncategorized => Bug
Comment:
There's effectively a bug here based on how `forms.Field.has_changed`
[https://github.com/django/django/blob/525e51f6ce7d77012b60a9bdbd098322f94bdd3f/django/forms/fields.py#L234-L239
is implemented].
Would you be willing to
[https://docs.djangoproject.com/en/6.0/internals/contributing/writing-code
/submitting-patches/ submit a patch]? Looks like a simple test could be
added
[https://github.com/django/django/blob/525e51f6ce7d77012b60a9bdbd098322f94bdd3f/tests/forms_tests/field_tests/test_jsonfield.py#L78
around here].
--
Ticket URL: <https://code.djangoproject.com/ticket/37122#comment:4>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion visit
https://groups.google.com/d/msgid/django-updates/0107019e6ec7da91-905d4086-d161-4e9b-8f44-c5bd9722335d-000000%40eu-central-1.amazonses.com.