Skip to content

Commit b5dc6b6

Browse files
committed
Fix docs typo
1 parent 7815811 commit b5dc6b6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/api-guide/serializers.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ Similarly if a nested representation should be a list of items, you should pass
187187

188188
Validation of nested objects will work the same as before. Errors with nested objects will be nested under the field name of the nested object.
189189

190-
serializer = CommentSerializer(comment, data={'user': {'email': 'foobar', 'user': 'doe'}, 'content': 'baz'})
190+
serializer = CommentSerializer(comment, data={'user': {'email': 'foobar', 'username': 'doe'}, 'content': 'baz'})
191191
serializer.is_valid()
192192
# False
193193
serializer.errors

0 commit comments

Comments
 (0)