Replies: 1 comment 1 reply
-
I'm in a similar scenario of trying to filter by two dependant fields (
Is there some simple way to have one filter method use multiple filter fields at the same time? Is there some recommended way to handle a scenario like this? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, all. I'm looking for a way to filter two inputs(name and place) from two models (Photographer and Location); but, MultipleChoiceFilter seems doesn't work for me because I need to add more complex logic which performs in my custom filter.
The question is " Is there a way I can put name input field in my location_filter, so that I can filter two inputs (name and place) in this function and return a wanted querySet from here".
I tried to use self.name in location_filter; however, an error log produced. I guess "name" here is not an class variable
Beta Was this translation helpful? Give feedback.
All reactions