Re: [Django] #35398: If the JSONField contains numbers key, the hash_key query becomes invalid

2024-04-23 Thread Django
#35398: If the JSONField  contains numbers key, the hash_key query becomes 
invalid
-+-
 Reporter:  hanjiangxue20|Owner:  nobody
 Type:  Bug  |   Status:  closed
Component:  Database layer   |  Version:  3.0
  (models, ORM)  |
 Severity:  Normal   |   Resolution:  duplicate
 Keywords:   | Triage Stage:
 |  Unreviewed
Has patch:  0|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  0|UI/UX:  0
-+-
Changes (by Sarah Boyce):

 * resolution:   => duplicate
 * severity:  Release blocker => Normal
 * status:  new => closed

Comment:

 Duplicate of #33552 and fixed as of 4.1 (note that 3.0 is no longer
 supported)
-- 
Ticket URL: 
Django 
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 django-updates+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/0107018f0a3e411c-d1353026-c786-425c-b81e-9a95855f7005-00%40eu-central-1.amazonses.com.


Re: [Django] #35398: If the JSONField contains numbers key, the hash_key query becomes invalid

2024-04-23 Thread Django
#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
-+-
Comment (by willzhao):

 can you elaborate on this issue and provide a minimal reproducible case?
-- 
Ticket URL: 
Django 
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 django-updates+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/0107018f09d1c5bd-7dad75db-55d6-405b-b800-828bfe84fb40-00%40eu-central-1.amazonses.com.


Re: [Django] #35398: If the JSONField contains numbers key, the hash_key query becomes invalid

2024-04-23 Thread Django
#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: 
Django 
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 django-updates+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/0107018f09cdbc93-cbde4972-f9cc-4011-bb03-eeaf6a50d698-00%40eu-central-1.amazonses.com.