views.py 333 B

12345678910
  1. # Create your views here.
  2. from rest_framework.viewsets import ModelViewSet
  3. from background.serializers import ProductInfoSerializer
  4. from background.models import ProductInfo
  5. from rest_framework import filters
  6. class ProductInfoSet(ModelViewSet):
  7. queryset = ProductInfo.objects.all()
  8. serializer_class = ProductInfoSerializer