Replies: 3 comments
-
class SystemFilter(djfilters.FilterSet): class Meta: def my_deputys_filter(self,queryset,name,value): |
Beta Was this translation helpful? Give feedback.
-
I've created this simple way for anyone still trying to do this For DRF, add this to your FilterSet class, it will transform your query to use OR instead of AND
|
Beta Was this translation helpful? Give feedback.
-
But isn't good maintained! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Im currently using the following filter with DRF:
But when i filter it will be always using an AND condition how can i change this schema to support OR conditons?
Beta Was this translation helpful? Give feedback.
All reactions