Opened 2 years ago
Last modified 2 years ago
#33966 closed New feature
Add support for using KeyTextTransform from lookup — at Version 1
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 (last modified by )
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
)`
Change History (1)
comment:1 by , 2 years ago
Cc: | added |
---|---|
Description: | modified (diff) |
Triage Stage: | Unreviewed → Accepted |
Note:
See TracTickets
for help on using tickets.