from rest_framework import serializers from .models import Project class ProjectSerializer(serializers.Serializer): def create(self, validated_data): """Create Project instance.""" return Project.objects.create(**validated_data)