django-filter icon indicating copy to clipboard operation
django-filter copied to clipboard

Support returning single complex query in get_filter_predicate instead of only supporting dictionary

Open jxltom opened this issue 6 years ago • 0 comments

I would like to override get_filter_predicate without rewriting the whole filter function such as for MultipleChoiceFilter, it will be nice to support get_filter_predicate returning a single complex query.

For now, only format like {question__startswith='Who'} is accepted, it would be nice to support returning something like Q(question__startswith='Who') | Q(question__startswith='What') directly from get_filter_predicate.

jxltom avatar Jan 21 '19 10:01 jxltom