aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTom Christie2015-01-08 15:38:27 +0000
committerTom Christie2015-01-08 15:38:27 +0000
commit4d9e7a53565f6301b87999e6bafdb1c2c3c2af3b (patch)
tree708ee3c1bcfa305c601f2c5aa84ca1f0411a2ba0
parent08008669886f682ba62c4d377f4d96f64808d4a5 (diff)
downloaddjango-rest-framework-4d9e7a53565f6301b87999e6bafdb1c2c3c2af3b.tar.bz2
Ammend docstring to use python2/3 compatible example.
-rw-r--r--rest_framework/settings.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/rest_framework/settings.py b/rest_framework/settings.py
index 33f84813..fc6dfecd 100644
--- a/rest_framework/settings.py
+++ b/rest_framework/settings.py
@@ -167,7 +167,7 @@ class APISettings(object):
For example:
from rest_framework.settings import api_settings
- print api_settings.DEFAULT_RENDERER_CLASSES
+ print(api_settings.DEFAULT_RENDERER_CLASSES)
Any setting with string import paths will be automatically resolved
and return the class, rather than the string literal.