views.py 275 B

12345678910
  1. from rest_framework.viewsets import ModelViewSet
  2. from payment.models import Payment
  3. from payment.serializer import PaymentSerializer
  4. class PaymentView(ModelViewSet):
  5. queryset = Payment.objects.all()
  6. serializer_class = PaymentSerializer
  7. pagination_class = None