- # Create your views here.
- from rest_framework.viewsets import ModelViewSet
- from background.serializers import ProductInfoSerializer
- from background.models import ProductInfo
- from rest_framework import filters
- class ProductInfoSet(ModelViewSet):
- queryset = ProductInfo.objects.all()
- serializer_class = ProductInfoSerializer
|