#32483: QuerySet.values()/values_list() with JSONField returns integers instead
of
booleans on SQLite.
-------------------------------------+-------------------------------------
Reporter: Matthew Cornell | Owner: nobody
Type: Bug | Status: new
Component: Documentation | Version: 3.1
Severity: Normal | Resolution:
Keywords: jsonfield querying | Triage Stage: Accepted
sqlite |
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by Mariusz Felisiak):
OK, there is a way with using `JSON_TYPE()`, however it's quite
complicated (see the
[https://github.com/django/django/compare/master...felixxm:refs-32483?expand=1
draft changeset]) and
`model_fields.test_jsonfield.TestQuerying.test_isnull_key_or_none` doesn't
work with this change. I would prefer to document this caveat in Django <
4.0 and keep this ticket as a cleanup/optimization.
--
Ticket URL: <https://code.djangoproject.com/ticket/32483#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/072.9bc564969e4deddc2c4ad2d8b0f946ce%40djangoproject.com.