I want query a row where my variable is within the range of 2 fields in my model.
Supposed I have x = 100 Model = Product with 3 fields price_start, price_end, category.
I want to know which category is my 'x' variable.
How can i query this in django?
p.s. this is just a simplified example of my problem. Supposing price_start and price_end does not overlap, how to know the category.