Changes between Initial Version and Version 1 of Ticket #33935


Ignore:
Timestamp:
Aug 17, 2022, 9:44:04 AM (2 years ago)
Author:
Foucauld Degeorges
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #33935 – Description

    initial v1  
    22
    33Doing 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
     5By comparison, with a CharField, {{{MyModel.objects.filter(my_char_field__unaccent__icontains="test")}}} works as expected.
    46
    57It 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.
Back to Top