Commit 38e05e66 by Xavier Ordoquy

print() function works from Python 2.6 to 3.X

parent e8cbf41b
...@@ -210,7 +210,7 @@ One nice property that serializers have is that you can inspect all the fields i ...@@ -210,7 +210,7 @@ One nice property that serializers have is that you can inspect all the fields i
>>> from snippets.serializers import SnippetSerializer >>> from snippets.serializers import SnippetSerializer
>>> serializer = SnippetSerializer() >>> serializer = SnippetSerializer()
>>> print repr(serializer) # In python 3 use `print(repr(serializer))` >>> print(repr(serializer))
SnippetSerializer(): SnippetSerializer():
id = IntegerField(label='ID', read_only=True) id = IntegerField(label='ID', read_only=True)
title = CharField(allow_blank=True, max_length=100, required=False) title = CharField(allow_blank=True, max_length=100, required=False)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment