Skip to content

Commit

Permalink
Added .validated_data usage. Closes #2214.
Browse files Browse the repository at this point in the history
  • Loading branch information
tomchristie committed Dec 5, 2014
1 parent 99a4374 commit b7b0fd3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/tutorial/1-serialization.md
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,8 @@ Deserialization is similar. First we parse a stream into Python native datatype
serializer = SnippetSerializer(data=data)
serializer.is_valid()
# True
serializer.validated_data
# OrderedDict([('title', ''), ('code', 'print "hello, world"\n'), ('linenos', False), ('language', 'python'), ('style', 'friendly')])
serializer.save()
# <Snippet: Snippet object>

Expand Down

0 comments on commit b7b0fd3

Please sign in to comment.