Answers for "making a modelserializer field required"

0

making a modelserializer field required

class CustomObjectSerializer(serializers.Serializer):
    name = serializers.CharField(required=True, trim_whitespace=True)
Posted by: Guest on June-10-2021

Browse Popular Code Answers by Language