change product list get
This commit is contained in:
@@ -67,10 +67,6 @@ class ProductViewSet(viewsets.ModelViewSet):
|
|||||||
queryset = product_models.Product.objects.all()
|
queryset = product_models.Product.objects.all()
|
||||||
serializer_class = product_serializers.ProductSerializer
|
serializer_class = product_serializers.ProductSerializer
|
||||||
|
|
||||||
def list(self, request, *args, **kwargs):
|
|
||||||
product = self.queryset.get(id=1)
|
|
||||||
return Response(product.quota_information(), status.HTTP_200_OK)
|
|
||||||
|
|
||||||
@action(
|
@action(
|
||||||
methods=['put'],
|
methods=['put'],
|
||||||
detail=True,
|
detail=True,
|
||||||
|
|||||||
Reference in New Issue
Block a user