debug view product
This commit is contained in:
@@ -20,7 +20,7 @@ class AllCategories(APIView):
|
||||
return Response({"categories": categories_ser.data}, status=status.HTTP_200_OK)
|
||||
|
||||
class ProductView(APIView):
|
||||
serializer_class = ProductModel
|
||||
serializer_class = ProductSerializer
|
||||
def get(self, request, pk):
|
||||
product = get_object_or_404(ProductModel, id=pk)
|
||||
product_ser = self.serializer_class(instance=product, many=False)
|
||||
|
||||
Reference in New Issue
Block a user