diff options
| author | Mark Aaron Shirley | 2013-07-14 18:18:39 -0700 |
|---|---|---|
| committer | Mark Aaron Shirley | 2013-07-14 18:18:39 -0700 |
| commit | b5dc6b61131cc36b0540133a28613c06e7f4e26a (patch) | |
| tree | ff931eb66411948b102977d55d24b07ddf8ce3a8 /docs/api-guide/serializers.md | |
| parent | 7815811fe3047b5110e6993ecd72349f6f232232 (diff) | |
| download | django-rest-framework-b5dc6b61131cc36b0540133a28613c06e7f4e26a.tar.bz2 | |
Fix docs typo
Diffstat (limited to 'docs/api-guide/serializers.md')
| -rw-r--r-- | docs/api-guide/serializers.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/api-guide/serializers.md b/docs/api-guide/serializers.md index 23c99942..022853ca 100644 --- a/docs/api-guide/serializers.md +++ b/docs/api-guide/serializers.md @@ -187,7 +187,7 @@ Similarly if a nested representation should be a list of items, you should pass 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. - serializer = CommentSerializer(comment, data={'user': {'email': 'foobar', 'user': 'doe'}, 'content': 'baz'}) + serializer = CommentSerializer(comment, data={'user': {'email': 'foobar', 'username': 'doe'}, 'content': 'baz'}) serializer.is_valid() # False serializer.errors |
