aboutsummaryrefslogtreecommitdiffstats
path: root/rest_framework/views.py
diff options
context:
space:
mode:
authorTom Christie2012-09-20 17:44:34 +0100
committerTom Christie2012-09-20 17:44:34 +0100
commitd9cba6398e2323b8d8cd34f791442528517e01b4 (patch)
tree4a8d378584e10c669acee2574fbd47f38f35785f /rest_framework/views.py
parentf4670c89969503919cd597529f19174e67acd388 (diff)
downloaddjango-rest-framework-d9cba6398e2323b8d8cd34f791442528517e01b4.tar.bz2
Clean up bits of templates etc
Diffstat (limited to 'rest_framework/views.py')
-rw-r--r--rest_framework/views.py9
1 files changed, 4 insertions, 5 deletions
diff --git a/rest_framework/views.py b/rest_framework/views.py
index a9710110..2d7fbefb 100644
--- a/rest_framework/views.py
+++ b/rest_framework/views.py
@@ -11,12 +11,11 @@ from django.http import Http404
from django.utils.html import escape
from django.utils.safestring import mark_safe
from django.views.decorators.csrf import csrf_exempt
-
-from rest_framework.compat import View as _View, apply_markdown
+from rest_framework import status, exceptions
+from rest_framework.compat import View, apply_markdown
from rest_framework.response import Response
from rest_framework.request import Request
from rest_framework.settings import api_settings
-from rest_framework import status, exceptions
def _remove_trailing_string(content, trailing):
@@ -53,7 +52,7 @@ def _camelcase_to_spaces(content):
return re.sub(camelcase_boundry, ' \\1', content).strip()
-class APIView(_View):
+class APIView(View):
settings = api_settings
renderer_classes = api_settings.DEFAULT_RENDERERS
@@ -86,7 +85,7 @@ class APIView(_View):
def default_response_headers(self):
return {
'Allow': ', '.join(self.allowed_methods),
- 'Vary': 'Authenticate, Accept'
+ 'Vary': 'Accept'
}
def get_name(self):