I want to add such filters to my internet shop:
Color:
# red
# blue
# green
Material:
# plastic
# wood
# metal
where each of points is a checkbox, color and material are fields of some Django model.
For example if i'm looking for red or blue toys with plastic material, i'll find it in such way:
filtered = SomeModel.objects.filter(material=plastic, color=red, color=blue)
But how to filter it dynamically?(if i have many filters)