Changes between Initial Version and Version 1 of Ticket #33935
- Timestamp:
- Aug 17, 2022, 9:44:04 AM (2 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #33935 – Description
initial v1 2 2 3 3 Doing the following queryset: {{{MyModel.objects.filter(my_json_field__en__unaccent__icontains="text")}}} does not match the above record, because Django interprets "unaccent"' as a key to find in the JSON dict, whereas I meant the PostgreSQL {{{unaccent}}} function. 4 5 By comparison, with a CharField, {{{MyModel.objects.filter(my_char_field__unaccent__icontains="test")}}} works as expected. 4 6 5 7 It seems that {{{ unaccent}}} is only supported on CharField and TextField for now, but since what I am trying to do is possible in SQL, it might be made possible as well using the ORM.