#32491: Updating a field based on a JSONField's sub-value adds extra quotes
[postgres]
-------------------------------------+-------------------------------------
Reporter: Baptiste Mispelon | Owner: (none)
Type: Bug | Status: new
Component: Database layer | Version: dev
(models, ORM) |
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by m_moeinzadeh):
* owner: m_moeinzadeh => (none)
* status: assigned => new
Comment:
neither `models.JSONField()` functions or backend converters of django
support changing the value of the `models.JSONField()`'s value
both `save()` and `get()` functions of django area working without any
bugs and the extra set of quotations is being added by while converting
the query data to flat data
in order to fix it, a new update is required on `converters` so they can
apply on the value of a `models.JSONField()` value not only on the key of
it's value
therefore this ticket requires major changes that are outside of this
tickets tritory that might cause great problems in other features and i
suggest adding full support for `models.JSONField()` to `converters`
--
Ticket URL: <https://code.djangoproject.com/ticket/32491#comment:5>
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/0107018ad1ba176a-889d0ccb-1a4e-420a-b2f2-f07e00e62ac1-000000%40eu-central-1.amazonses.com.