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

12 lines
329 B
Python
Raw Normal View History

2014-05-08 16:59:35 +00:00
from rest_framework import serializers
from orchestra.apps.accounts.serializers import AccountSerializerMixin
from .models import List
class ListSerializer(AccountSerializerMixin, serializers.HyperlinkedModelSerializer):
2014-05-08 16:59:35 +00:00
class Meta:
model = List
fields = ('url', 'name', 'address_name', 'address_domain')