i have required field in model but i need it to be optional in serializer 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}
}