I want to make django query based on function input.I don\'t want to check input with if and else in 2 separate line and then make query like this: