You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there a way to override filter_queryset in FilteringFilterBackend without having to copy all the code to the inheriting class?
I want to add support for the match_phrase operator but because the conditional defaults to the term filter like in here:
# `term` filter lookup. This is default if no `default_lookup`
# option has been given or explicit lookup provided.
else:
queryset = self.apply_filter_term(queryset,
options,
value)
I end up with a query like this which doesn't work:
Questions
Is there a way to override
filter_queryset
inFilteringFilterBackend
without having to copy all the code to the inheriting class?I want to add support for the
match_phrase
operator but because the conditional defaults to theterm
filter like in here:I end up with a query like this which doesn't work:
My
apply
method is as follows:Thanks.
-Selim
The text was updated successfully, but these errors were encountered: