I've got a list of objects (properties for rent, in this case) that I am listing, the list needs to be filterable by a handful of criteria (max price, area, n_bedrooms ...) and I figured I could do it like this:
(r'^price:(?P<price_min>\d+)?-(?P<price_max>\d+)?/$', property_list)
This works, and allows urls like price:300-600/ to do the sensible thing.
However, it becomes unwieldy when there's around half a dozen attributes one could be filtering by, and ideally I would like clean urls (i.e. not including attributes for which we're not currently filtering in the url)
Is there a "standard" way to handle this in Django?