aboutsummaryrefslogtreecommitdiffstats
path: root/djangorestframework/request.py
diff options
context:
space:
mode:
authorTom Christie2012-02-20 09:36:03 +0000
committerTom Christie2012-02-20 09:36:03 +0000
commit21fcd3a90631e96e3fa210dd526abab9571ad6e1 (patch)
tree89de366aeb125596bf00d811cd8a409246c3c9e4 /djangorestframework/request.py
parentfbf76c87affc88f04bb0d0acaecc6af6442ba921 (diff)
downloaddjango-rest-framework-21fcd3a90631e96e3fa210dd526abab9571ad6e1.tar.bz2
Some cleanup
Diffstat (limited to 'djangorestframework/request.py')
-rw-r--r--djangorestframework/request.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/djangorestframework/request.py b/djangorestframework/request.py
index d4ea1e01..e8f2b8c3 100644
--- a/djangorestframework/request.py
+++ b/djangorestframework/request.py
@@ -9,11 +9,9 @@ The wrapped request then offers a richer API, in particular :
- form overloading of HTTP method, content type and content
"""
-from django.http import HttpRequest
-
from djangorestframework.response import ImmediateResponse
from djangorestframework import status
-from djangorestframework.utils.mediatypes import is_form_media_type, order_by_precedence
+from djangorestframework.utils.mediatypes import is_form_media_type
from djangorestframework.utils import as_tuple
from StringIO import StringIO
@@ -105,7 +103,7 @@ class Request(object):
"""
self._content_type = self.META.get('HTTP_CONTENT_TYPE', self.META.get('CONTENT_TYPE', ''))
self._perform_form_overloading()
- # if the HTTP method was not overloaded, we take the raw HTTP method
+ # if the HTTP method was not overloaded, we take the raw HTTP method
if not hasattr(self, '_method'):
self._method = self.request.method