serializers.py 238 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
from picampaign.organization.models import FeedbackCategory
from rest_framework import serializers


class CategorySerializer(serializers.ModelSerializer):

    class Meta:
        model = FeedbackCategory
        fields = ('id', 'name')