Skip to content
Snippets Groups Projects
serializers.py 377 B
Newer Older
  • Learn to ignore specific revisions
  • 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',)