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']
[((6, 16, 6, 39), 'rest_framework.serializers.JSONField', 'serializers.JSONField', ({}, {}), '()', False, 'from rest_framework import serializers\n'), ((7, 16, 7, 39), 'rest_framework.serializers.FileField', 'serializers.FileField', ({}, {}), '()', False, 'from rest_framework import serializers\n')]