Update writeable nested serializer doc (#7198)

This commit is contained in:
Prayash Mohapatra 2020-02-20 10:55:13 +00:00 committed by GitHub
parent 92a4a5d423
commit 764dabd29e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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