#33966: Add support for using KeyTextTransform from lookup
-------------------------------------+-------------------------------------
     Reporter:  AllenJonathan        |                    Owner:  nobody
         Type:  New feature          |                   Status:  new
    Component:  Database layer       |                  Version:  dev
  (models, ORM)                      |
     Severity:  Normal               |               Resolution:
     Keywords:                       |             Triage Stage:  Accepted
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Changes (by Mariusz Felisiak):

 * cc: Simon Charette (added)
 * stage:  Unreviewed => Accepted


Old description:

> 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`)`

New description:

 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_field__a__b`)`

--

-- 
Ticket URL: <https://code.djangoproject.com/ticket/33966#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/01070182ee5f16f8-e308c967-048b-4497-86c2-8103b74c0dad-000000%40eu-central-1.amazonses.com.

Reply via email to