aboutsummaryrefslogtreecommitdiffstats
path: root/rest_framework/settings.py
diff options
context:
space:
mode:
authorChristopher Paolini2013-08-16 13:23:04 -0400
committerChristopher Paolini2013-08-16 13:23:04 -0400
commita95984e4d4b034c196d40f74fbdc6345e6d4124c (patch)
tree794063fa0503b5d8b39010c4a7c98eb5421c8264 /rest_framework/settings.py
parentd07dae6e79d53fdcfc7d88e085fe7e6da97c9c74 (diff)
downloaddjango-rest-framework-a95984e4d4b034c196d40f74fbdc6345e6d4124c.tar.bz2
Settings now have default functions
Updated the setting to have a default function.
Diffstat (limited to 'rest_framework/settings.py')
-rw-r--r--rest_framework/settings.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/rest_framework/settings.py b/rest_framework/settings.py
index b65e42cf..0b2bdb62 100644
--- a/rest_framework/settings.py
+++ b/rest_framework/settings.py
@@ -70,8 +70,8 @@ DEFAULTS = {
'PAGINATE_BY_PARAM': None,
# View configuration
- 'VIEW_NAME_FUNCTION': None,
- 'VIEW_DESCRIPTION_FUNCTION': None,
+ 'VIEW_NAME_FUNCTION': 'rest_framework.utils.formatting.view_name',
+ 'VIEW_DESCRIPTION_FUNCTION': 'rest_framework.utils.formatting.view_description',
# Authentication
'UNAUTHENTICATED_USER': 'django.contrib.auth.models.AnonymousUser',
@@ -129,6 +129,8 @@ IMPORT_STRINGS = (
'TEST_REQUEST_RENDERER_CLASSES',
'UNAUTHENTICATED_USER',
'UNAUTHENTICATED_TOKEN',
+ 'VIEW_NAME_FUNCTION',
+ 'VIEW_DESCRIPTION_FUNCTION'
)