#33966: Add support for using KeyTextTransform from lookup
-------------------------------------+-------------------------------------
Reporter: | Owner: nobody
AllenJonathan |
Type: New | Status: new
feature |
Component: Database | Version: dev
layer (models, ORM) |
Severity: Normal | Keywords:
Triage Stage: | Has patch: 0
Unreviewed |
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-------------------------------------+-------------------------------------
Currently, we use nested objects to transform through a JSON field. For
example, for
`json = {'a': {'b': 'boat`}}`
Here, to get 'boat` in text form we use:-
`KeyTextTransform(KeyTextTransform('a', 'json_field'), 'b')`
This would return 'boat' in text form.
A better UX would be:
`KeyTextTransform('json__a__b`)`
--
Ticket URL: <https://code.djangoproject.com/ticket/33966>
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/01070182ee5bce7d-0c2c5731-c26d-432f-b9d1-1efdd196b22e-000000%40eu-central-1.amazonses.com.