forked from erp-dev/erp
feat: fix
This commit is contained in:
@@ -125,13 +125,6 @@ class QuickInputViewSet(BasicInfoFilterMixin, viewsets.ModelViewSet):
|
|||||||
|
|
||||||
|
|
||||||
class ProductViewSet(BaseViewSet):
|
class ProductViewSet(BaseViewSet):
|
||||||
def filter_queryset(self, queryset):
|
|
||||||
qs = super().filter_queryset(queryset)
|
|
||||||
name = self.request.query_params.get('name')
|
|
||||||
if name:
|
|
||||||
qs = qs.filter(name__icontains=name)
|
|
||||||
return qs
|
|
||||||
|
|
||||||
queryset = serializers.basic_models.Product.objects
|
queryset = serializers.basic_models.Product.objects
|
||||||
serializer_class = serializers.ProductSerializer
|
serializer_class = serializers.ProductSerializer
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user