query: parse query string into a query that can be applied to a django queryset