django-orchestra/orchestra/contrib/orders/serializers.py

15 lines
410 B
Python
Raw Normal View History

from rest_framework import serializers
2015-04-05 10:46:24 +00:00
from orchestra.contrib.accounts.serializers import AccountSerializerMixin
from .models import Order
class OrderSerializer(AccountSerializerMixin, serializers.HyperlinkedModelSerializer):
class Meta:
model = Order
fields = (
2015-04-30 09:51:55 +00:00
'url', 'id', 'registered_on', 'cancelled_on', 'billed_on', 'billed_until',
'description'
)