django-orchestra/orchestra/apps/payments/serializers.py

15 lines
330 B
Python

from rest_framework import serializers
from .models import PaymentSource, PaymentSource
class PaymentSourceSerializer(serializers.HyperlinkedModelSerializer):
class Meta:
model = PaymentSource
class TransactionSerializer(serializers.HyperlinkedModelSerializer):
class Meta:
model = PaymentSource