mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-10 19:56:59 +03:00
Add missing space in serializer error message
This commit is contained in:
parent
aeda2adeea
commit
03b5438d07
|
@ -715,7 +715,7 @@ def raise_errors_on_nested_writes(method_name, serializer, validated_data):
|
||||||
isinstance(validated_data[key], (list, dict))
|
isinstance(validated_data[key], (list, dict))
|
||||||
for key, field in serializer.fields.items()
|
for key, field in serializer.fields.items()
|
||||||
), (
|
), (
|
||||||
'The `.{method_name}()` method does not support writable nested'
|
'The `.{method_name}()` method does not support writable nested '
|
||||||
'fields by default.\nWrite an explicit `.{method_name}()` method for '
|
'fields by default.\nWrite an explicit `.{method_name}()` method for '
|
||||||
'serializer `{module}.{class_name}`, or set `read_only=True` on '
|
'serializer `{module}.{class_name}`, or set `read_only=True` on '
|
||||||
'nested serializer fields.'.format(
|
'nested serializer fields.'.format(
|
||||||
|
|
Loading…
Reference in New Issue
Block a user