django serializer how to make field required for create code example
Example: how to set required drf serialzier
class MySerializer(serializer.Modelserializer):
class Meta:
model = MyModel
fields = ['id', 'title']
extra_kwargs = {
"title": {"required": False}
}