Opened 2 years ago

Last modified 2 years ago

#33966 closed New feature

Add support for using KeyTextTransform from lookup — at Initial Version

Reported by: AllenJonathan Owned by: nobody
Component: Database layer (models, ORM) Version: dev
Severity: Normal Keywords:
Cc: Simon Charette Triage Stage: Ready for checkin
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

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

Change History (0)

Note: See TracTickets for help on using tickets.
Back to Top