mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-01-24 00:04:16 +03:00
print() function works from Python 2.6 to 3.X
This commit is contained in:
parent
e8cbf41bd9
commit
38e05e66c9
|
@ -210,7 +210,7 @@ One nice property that serializers have is that you can inspect all the fields i
|
|||
|
||||
>>> from snippets.serializers import SnippetSerializer
|
||||
>>> serializer = SnippetSerializer()
|
||||
>>> print repr(serializer) # In python 3 use `print(repr(serializer))`
|
||||
>>> print(repr(serializer))
|
||||
SnippetSerializer():
|
||||
id = IntegerField(label='ID', read_only=True)
|
||||
title = CharField(allow_blank=True, max_length=100, required=False)
|
||||
|
|
Loading…
Reference in New Issue
Block a user