diff --git a/django_etebase/serializers.py b/django_etebase/serializers.py index 356da82..036da1e 100644 --- a/django_etebase/serializers.py +++ b/django_etebase/serializers.py @@ -137,7 +137,7 @@ class BetterErrorsMixin: ) if nice: return {'code': 'field_errors', - 'message': 'Field validations failed.', + 'detail': 'Field validations failed.', 'errors': nice} return {} @@ -158,7 +158,7 @@ class BetterErrorsMixin: ret.append({ 'field': field_name, 'code': error.code, - 'message': message, + 'detail': message, }) return ret @@ -172,7 +172,7 @@ class BetterErrorsMixin: raise serializers.ValidationError({ 'code': 'field_errors', - 'message': 'Field validations failed.', + 'detail': 'Field validations failed.', 'errors': errors, })