diff options
| author | Christopher Paolini | 2013-08-16 13:23:04 -0400 | 
|---|---|---|
| committer | Christopher Paolini | 2013-08-16 13:23:04 -0400 | 
| commit | a95984e4d4b034c196d40f74fbdc6345e6d4124c (patch) | |
| tree | 794063fa0503b5d8b39010c4a7c98eb5421c8264 /rest_framework/settings.py | |
| parent | d07dae6e79d53fdcfc7d88e085fe7e6da97c9c74 (diff) | |
| download | django-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.py | 6 | 
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'  ) | 
