Opened 6 years ago
Closed 6 years ago
#30704 closed Bug (fixed)
JSONField nested key and index transforms crash.
| Reported by: | Mariusz Felisiak | Owned by: | Mariusz Felisiak |
|---|---|---|---|
| Component: | contrib.postgres | Version: | dev |
| Severity: | Normal | Keywords: | |
| Cc: | Triage Stage: | Accepted | |
| Has patch: | yes | Needs documentation: | no |
| Needs tests: | no | Patch needs improvement: | no |
| Easy pickings: | no | UI/UX: | no |
Description
JSONField/HStoreField nested keys and indexes transforms crash when we pass expressions with parameters, e.g.
JSONModel.objects.annotate(
key=KeyTransform('d', 'field'),
expr=KeyTransform('f', KeyTransform('1', Cast('key', JSONField()))),
)
Separated from #30672 because it is not a regression.
Note:
See TracTickets
for help on using tickets.
PR