mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-22 09:36:49 +03:00
Update writeable nested serializer doc (#7198)
This commit is contained in:
parent
92a4a5d423
commit
764dabd29e
|
@ -333,7 +333,7 @@ Here's an example for an `.update()` method on our previous `UserSerializer` cla
|
|||
def update(self, instance, validated_data):
|
||||
profile_data = validated_data.pop('profile')
|
||||
# Unless the application properly enforces that this field is
|
||||
# always set, the follow could raise a `DoesNotExist`, which
|
||||
# always set, the following could raise a `DoesNotExist`, which
|
||||
# would need to be handled.
|
||||
profile = instance.profile
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user