From cca4faebe20e5e0ff2e796e8d901b91897fab527 Mon Sep 17 00:00:00 2001 From: Matt Robenolt Date: Sun, 30 Mar 2014 21:21:34 -0700 Subject: [PATCH] Also proxy `__setattr__` on `Request` object --- rest_framework/request.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/rest_framework/request.py b/rest_framework/request.py index 40467c03d..4895ca9cc 100644 --- a/rest_framework/request.py +++ b/rest_framework/request.py @@ -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)