#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
----------------------------------+--------------------------------------

Comment (by Gustav Eiman):

 Replying to [comment:1 felixxm]:
 > 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.

 Thank you! I agree, I had no idea this was available.

 Being a first time poster, what do I do now? Should I close this ticket?

-- 
Ticket URL: <https://code.djangoproject.com/ticket/30711#comment:2>
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.64f745b513ed2c6336342d5f5f2c9b9c%40djangoproject.com.

Reply via email to