Newer
Older
from rest_framework import serializers
from .models import ApplicationSubmission
class SubmissionListSerializer(serializers.ModelSerializer):
class Meta:
model = ApplicationSubmission
fields = ('id',)
class SubmissionDetailSerializer(serializers.ModelSerializer):
class Meta:
model = ApplicationSubmission
fields = ('id', 'title',)