django-orchestra/orchestra/contrib/orders/serializers.py
2023-07-09 07:51:51 +00:00

15 lines
410 B
Python

from rest_framework import serializers
from orchestra.contrib.accounts.serializers import AccountSerializerMixin
from .models import Order
class OrderSerializer(AccountSerializerMixin, serializers.HyperlinkedModelSerializer):
class Meta:
model = Order
fields = (
'url', 'id', 'registered_on', 'cancelled_on', 'billed_on', 'billed_until',
'description'
)