{
"status:"error",
"data":[
"source": [
"This field may not be blank."
],
"description": [
"This field may not be blank."
]
]
}
# serializers.py
class MySerializer(serializers.ModelSerializer):
# ...
@property
def errors(self):
origin = super().errors
origin['status'] = 'error'
return origin