aboutsummaryrefslogtreecommitdiffstats
path: root/djangorestframework/authentication.py
diff options
context:
space:
mode:
Diffstat (limited to 'djangorestframework/authentication.py')
-rw-r--r--djangorestframework/authentication.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/djangorestframework/authentication.py b/djangorestframework/authentication.py
index b61af32a..20a5f34a 100644
--- a/djangorestframework/authentication.py
+++ b/djangorestframework/authentication.py
@@ -95,8 +95,8 @@ class UserLoggedInAuthentication(BaseAuthentication):
# Temporarily replace request.POST with .DATA, to use our generic parsing.
# If DATA is not dict-like, use an empty dict.
if request.method.upper() == 'POST':
- if hasattr(self.view.DATA, 'get'):
- request._post = self.view.DATA
+ if hasattr(request.DATA, 'get'):
+ request._post = request.DATA
else:
request._post = {}