mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-08-03 20:10:10 +03:00
Merge db714eede7
into c44591674f
This commit is contained in:
commit
5183309245
|
@ -227,6 +227,7 @@ class Request(object):
|
|||
set in the login and logout functions.
|
||||
"""
|
||||
self._user = value
|
||||
self._request.user = value
|
||||
|
||||
@property
|
||||
def auth(self):
|
||||
|
@ -390,6 +391,7 @@ class Request(object):
|
|||
if not user_auth_tuple is None:
|
||||
self._authenticator = authenticator
|
||||
self._user, self._auth = user_auth_tuple
|
||||
self._request.user = self._user
|
||||
return
|
||||
|
||||
self._not_authenticated()
|
||||
|
|
Loading…
Reference in New Issue
Block a user