2014-07-28 17:28:00 +00:00
|
|
|
from rest_framework import serializers
|
|
|
|
|
2015-04-05 10:46:24 +00:00
|
|
|
from orchestra.contrib.accounts.serializers import AccountSerializerMixin
|
2014-07-28 17:28:00 +00:00
|
|
|
|
|
|
|
from .models import Order
|
|
|
|
|
|
|
|
|
|
|
|
class OrderSerializer(AccountSerializerMixin, serializers.HyperlinkedModelSerializer):
|
|
|
|
class Meta:
|
|
|
|
model = Order
|
|
|
|
fields = (
|
|
|
|
'url', 'registered_on', 'cancelled_on', 'billed_on', 'billed_until',
|
|
|
|
'description'
|
|
|
|
)
|