Also proxy __setattr__ on Request object

This commit is contained in:
Matt Robenolt 2014-03-30 21:21:34 -07:00
parent 2a27674a79
commit cca4faebe2

View File

@ -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)