Queries ------- .. _Filter.query_operator_to_q_operator: How do I override what operator is used for a query? ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ The member `query_operator_to_q_operator` for `Filter` is used to convert from e.g. `:` to `icontains`. You can specify another callable here: .. code-block:: python Table( auto__model=Track, columns__album__filter__query_operator_to_q_operator=lambda op: 'exact', ) The above will force the album name to always be looked up with case sensitive match even if the user types `album▼ Hide result .. raw:: html
► Show result