#33871: JSONField with default is not detected as changed when invalidated in
inlines.
-------------------------------------+-------------------------------------
Reporter: Raphael | Owner: JunKi
| Yoon
Type: Bug | Status: assigned
Component: Forms | Version: 4.0
Severity: Normal | Resolution:
Keywords: JSONField | Triage Stage: Accepted
TabularInline |
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by JunKi Yoon):
Replying to [comment:5 Mariusz Felisiak]:
Hi Mariusz Felisiak :)
After debugging, I confirmed that the **initial-choice_set-0-test** and
**choice_set-0-test** are same.
So, I guess one thing. **initial-choice_set-0-test** is not the value that
the Choice object currently has.
**initial-choice_set-0-test** value after showing error message by
sequence 8 is stored as the input value in sequence 6.
Could you plz give me some advice regarding where to set the initial-XXX-
XXX and code?
Thank you.
cc) [comment:10 Raphael]
> Thanks for the detailed report. `initial` value is set to a new value
when invalidated, that's why changes are not detected:
> {{{
> choice_set-0-test="test 123"
> initial-choice_set-0-test="test 123"
> }}}
--
Ticket URL: <https://code.djangoproject.com/ticket/33871#comment:11>
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 on the web visit
https://groups.google.com/d/msgid/django-updates/01070182b0ee8d05-b0217c9d-31ae-4260-854a-52f7f91a1263-000000%40eu-central-1.amazonses.com.