def _filter_queryset(self, queryset):
        if 'customer' in self.request.query_params:
            customer_uuid = self.request.query_params['customer']
            queryset = queryset.filter(instance__cloud_project_membership__project__customer__uuid=customer_uuid)
        if 'name' in self.request.query_params:
            queryset = queryset.filter(template_license__name=self.request.query_params['name'])
        if 'type' in self.request.query_params:
            queryset = queryset.filter(template_license__license_type=self.request.query_params['type'])
        return queryset
dataset/ETHPy150Open opennode/nodeconductor/nodeconductor/iaas/views.py/TemplateLicenseViewSet._filter_queryset/original