from rest_framework import serializers

from applications.models import Application

class ApplicationSerializer(serializers.Serializer):
    content   = serializers.JSONField()
    portfolio = serializers.FileField()

class ApplicationAdminSerializer(serializers.ModelSerializer):
    class Meta:
        model  = Application
        fields = ['content', 'user', 'status', 'created_at', 'updated_at', 'recruits']

class ApplicationAdminPatchSerializer(serializers.ModelSerializer):
    class Meta:
        model  = Application
        fields = ['status']
[((154, 177), 'rest_framework.serializers.JSONField', 'serializers.JSONField', ([], {}), '()\n', (175, 177), False, 'from rest_framework import serializers\n'), ((194, 217), 'rest_framework.serializers.FileField', 'serializers.FileField', ([], {}), '()\n', (215, 217), False, 'from rest_framework import serializers\n')]