Slice the queryset only after all the other paramethers have been checked