I'm just wondering if there is any example I could take from others on the topic.
I have a page within Django which uses filters, in order to perform searches.
At the moment I'm doing a simple check for the GET parameters and adding a .filter() to a queryset accordingly:
if color:
query.filter(color=color)
This feels a bit like an ugly way to do, and I've been a bit stuck wondering how I could make it more dynamic.
Any ideas?