Answers for "how to set required drf serialzier"

1

how to set required drf serialzier

class MySerializer(serializer.Modelserializer):
	class Meta:
    	model = MyModel
        fields = ['id', 'title']
        
	extra_kwargs = {
		"title": {"required": False}
	}
Posted by: Guest on January-06-2021

Python Answers by Framework

Browse Popular Code Answers by Language