mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-08-03 12:00:12 +03:00
Also proxy __setattr__
on Request
object
This commit is contained in:
parent
2a27674a79
commit
cca4faebe2
|
@ -418,3 +418,9 @@ class Request(object):
|
|||
Proxy other attributes to the underlying HttpRequest object.
|
||||
"""
|
||||
return getattr(self._request, attr)
|
||||
|
||||
def __setattr__(self, attr, value):
|
||||
"""
|
||||
Proxy other attributes to the underlying HttpRequest object.
|
||||
"""
|
||||
return setattr(self._request, attr, value)
|
||||
|
|
Loading…
Reference in New Issue
Block a user