#35398: If the JSONField contains numbers key, the hash_key query becomes
invalid
-------------------------------------+-------------------------------------
Reporter: hanjiangxue20 | Owner: nobody
Type: Bug | Status: new
Component: Database layer | Version: 3.0
(models, ORM) |
Severity: Release blocker | Resolution:
Keywords: | Triage Stage:
| Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Description changed by hanjiangxue20:
Old description:
> The JSONField defined in the django model contain numbers, such as
> {"123": "abc"}, and querying XX.objects.filter (has_key_123) is invalid!
> get nothing.
New description:
The JSONField defined in the django model contain numbers, such as fields:
tags value is {"123": "abc"}, and querying XX.objects.filter
(tags__has_key='123') is invalid! get nothing.
--
--
Ticket URL: <https://code.djangoproject.com/ticket/35398#comment:1>
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/0107018f09cdbc93-cbde4972-f9cc-4011-bb03-eeaf6a50d698-000000%40eu-central-1.amazonses.com.