#33373: Support expressions on rhs for __has_keys, __has_any_keys JSONField
lookups.
-------------------------------------+-------------------------------------
Reporter: john-parton | Owner: nobody
Type: New feature | Status: closed
Component: Database layer | Version: 3.2
(models, ORM) |
Severity: Normal | Resolution: needsinfo
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 Mariusz Felisiak):
* status: new => closed
* type: Bug => New feature
* resolution: => needsinfo
Comment:
Thanks for this ticket. Only `__has_keys` examples with lists are
[https://docs.djangoproject.com/en/stable/topics/db/queries/#has-keys
documented], so it's not a bug but a new feature. I'm skeptical, this can
be error-prone and tricky to implement for all backends (see
[https://github.com/django/django/pull/12392#issuecomment-624454015
discussion]). We can reconsider this decision if someone provides PoC with
cross-database compatibility.
--
Ticket URL: <https://code.djangoproject.com/ticket/33373#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/069.45ae5c328838ed8a82df654e8c623c11%40djangoproject.com.