#30711: Add HStoreF for F object like querying on HStoreField.
----------------------------------+--------------------------------------
Reporter: Gustav Eiman | Owner: (none)
Type: New feature | Status: new
Component: contrib.postgres | Version: master
Severity: Normal | Resolution:
Keywords: HStoreField F | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
----------------------------------+--------------------------------------
Changes (by felixxm):
* version: 2.2 => master
Comment:
Thanks for the report, I don't think that we should support this by adding
a custom expression because currently you can always use
`django.contrib.postgres.fields.hstore.KeyTransform`, e.g.
{{{
Person.objects.annotate(height=KeyTransform('height', 'attributes'))
}}}
I don't think that we need to add anything new. IMO, documentating
`django.contrib.postgres.fields.hstore.KeyTransform` should be enough.
It's more complicated for JSONField because nesting multiple
`KeyTransform()` is not so handy.
--
Ticket URL: <https://code.djangoproject.com/ticket/30711#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/066.44e514fe552991bc351845564eaf08f1%40djangoproject.com.