get the queryset dynamically