serializers.py 252 B

12345678910
  1. from rest_framework import serializers
  2. from .models import Project
  3. class ProjectSerializer(serializers.Serializer):
  4. def create(self, validated_data):
  5. """Create Project instance."""
  6. return Project.objects.create(**validated_data)