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