Opened 7 months ago

Last modified 7 months ago

#35398 closed Bug

If the JSONField contains numbers key, the hash_key query becomes invalid — at Initial Version

Reported by: hanjiangxue20 Owned by: nobody
Component: Database layer (models, ORM) Version: 3.0
Severity: Normal Keywords:
Cc: hanjiangxue20 Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

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.

Change History (0)

Note: See TracTickets for help on using tickets.
Back to Top