From 15f9e7c56699d31043782045a9fe47c354f612cb Mon Sep 17 00:00:00 2001 From: Tom Christie Date: Thu, 12 May 2011 12:55:13 +0100 Subject: refactoring resource specfic stuff into ResourceMixin - validators now defunct --- djangorestframework/authentication.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'djangorestframework/authentication.py') diff --git a/djangorestframework/authentication.py b/djangorestframework/authentication.py index 97e5d9c5..b0ba41aa 100644 --- a/djangorestframework/authentication.py +++ b/djangorestframework/authentication.py @@ -85,9 +85,9 @@ class UserLoggedInAuthenticaton(BaseAuthenticaton): if getattr(request, 'user', None) and request.user.is_active: # If this is a POST request we enforce CSRF validation. if request.method.upper() == 'POST': - # Temporarily replace request.POST with .RAW_CONTENT, + # Temporarily replace request.POST with .DATA, # so that we use our more generic request parsing - request._post = self.view.RAW_CONTENT + request._post = self.view.DATA resp = CsrfViewMiddleware().process_view(request, None, (), {}) del(request._post) if resp is not None: # csrf failed -- cgit v1.2.3