mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-07-28 17:09:59 +03:00
fixing writable fields test by including field.field_name in place of field.source_attrs
This commit is contained in:
parent
a3e5559f02
commit
5902dac33b
|
@ -493,7 +493,7 @@ class Serializer(BaseSerializer, metaclass=SerializerMetaclass):
|
|||
except SkipField:
|
||||
pass
|
||||
else:
|
||||
set_value(ret, field.source_attrs, validated_value)
|
||||
set_value(ret, field.field_name.split(), validated_value)
|
||||
|
||||
if errors:
|
||||
raise ValidationError(errors)
|
||||
|
|
Loading…
Reference in New Issue
Block a user