Fix logging of requesting user with REST API.

Fixes #1155.

(imported from commit b5becb7418ce9577a6bbaa20dcb68a02f1928b9f)
This commit is contained in:
Tim Abbott 2013-04-29 16:00:58 -04:00
parent c08a86aeb9
commit 5b51705451
1 changed files with 1 additions and 0 deletions

View File

@ -114,6 +114,7 @@ def authenticated_rest_api_view(view_func):
resp = HttpResponseUnauthorized("humbug")
resp.content = e.error
return resp
request._email = email
process_client(request, user_profile)
return view_func(request, user_profile, *args, **kwargs)
return _wrapped_view_func