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

12 lines
312 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.ModelSerializer):
class Meta:
model = List
fields = ('name', 'address_name', 'address_domain',)