Skip to content

Commit 5fd12d1

Browse files
authored
Merge pull request #6376 from johnthagen/patch-1
Fix example to be Python 3.x and 2.7 compatible
2 parents 86aa776 + f0712aa commit 5fd12d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/api-guide/relations.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ To do so, open the Django shell, using `python manage.py shell`, then import the
2222

2323
>>> from myapp.serializers import AccountSerializer
2424
>>> serializer = AccountSerializer()
25-
>>> print repr(serializer) # Or `print(repr(serializer))` in Python 3.x.
25+
>>> print(repr(serializer))
2626
AccountSerializer():
2727
id = IntegerField(label='ID', read_only=True)
2828
name = CharField(allow_blank=True, max_length=100, required=False)

0 commit comments

Comments
 (0)