mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-08-06 05:20:12 +03:00
Merge c434d1b72f
into dd712a1c26
This commit is contained in:
commit
d56c3d7d8d
|
@ -630,7 +630,7 @@ def raise_errors_on_nested_writes(method_name, serializer, validated_data):
|
||||||
# ...
|
# ...
|
||||||
# address = serializer.CharField('profile.address')
|
# address = serializer.CharField('profile.address')
|
||||||
assert not any(
|
assert not any(
|
||||||
'.' in field.source and (key in validated_data)
|
'.' in field.source and (key in validated_data) and (field.read_only is not True)
|
||||||
and isinstance(validated_data[key], (list, dict))
|
and isinstance(validated_data[key], (list, dict))
|
||||||
for key, field in serializer.fields.items()
|
for key, field in serializer.fields.items()
|
||||||
), (
|
), (
|
||||||
|
|
Loading…
Reference in New Issue
Block a user