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

15 lines
330 B
Python
Raw Normal View History

2014-07-23 16:24:56 +00:00
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