Skip to content

Commit 1a8f9d0

Browse files
committed
fix issue #3395 to correct the output text at line 184in docs/tutorial/1-serialization.md
1 parent 31539e1 commit 1a8f9d0

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)