Skip to content

Commit b7d77d5

Browse files
committed
Merge pull request #3396 from qqbuby/3395
fix issue #3395
2 parents 2424ab0 + 1aa16ca commit b7d77d5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/tutorial/1-serialization.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ We can also serialize querysets instead of model instances. To do so we simply
181181

182182
serializer = SnippetSerializer(Snippet.objects.all(), many=True)
183183
serializer.data
184-
# [{'pk': 1, 'title': u'', 'code': u'foo = "bar"\n', 'linenos': False, 'language': u'python', 'style': u'friendly'}, {'pk': 2, 'title': u'', 'code': u'print "hello, world"\n', 'linenos': False, 'language': u'python', 'style': u'friendly'}]
184+
# [OrderedDict([('pk', 1), ('title', u''), ('code', u'foo = "bar"\n'), ('linenos', False), ('language', 'python'), ('style', 'friendly')]), OrderedDict([('pk', 2), ('title', u''), ('code', u'print "hello, world"\n'), ('linenos', False), ('language', 'python'), ('style', 'friendly')]), OrderedDict([('pk', 3), ('title', u''), ('code', u'print "hello, world"'), ('linenos', False), ('language', 'python'), ('style', 'friendly')])]
185185

186186
## Using ModelSerializers
187187

0 commit comments

Comments
 (0)