In the Django admin, the user can set filters which limit the rows displayed in the change list. How can I get a QuerySet instance with filters set as defined by the query string? For instance, if I pass ?start_date_gte=2009-11-06, the Django admin will apply a qs.filter(start_date__gte...) somewhere. How can I access such a QuerySet?
I need this since obviously I don't want to rewrite the code that takes these GET parameters and filter()s a QuerySet accordingly.
Take a look at django-filter.
Looks interesting. However, I was talking about using that QuerySet within the Admin. Found the answer, see below: