views.py 344 B

12345678910111213
  1. from django.shortcuts import render
  2. # Create your views here.
  3. from rest_framework.viewsets import ModelViewSet
  4. from pivottable.models import Payment
  5. from pivottable.serializer import PaymentSerializer
  6. class PaymentViews(ModelViewSet):
  7. pagination_class = None
  8. queryset = Payment.objects.all()
  9. serializer_class = PaymentSerializer