Django 1.10: Deprecate request.REQUEST.

This commit is contained in:
Umair Khan
2016-11-03 17:00:18 +05:00
committed by Tim Abbott
parent dd314b3796
commit fe1ba6f3eb
4 changed files with 34 additions and 21 deletions

View File

@@ -199,7 +199,8 @@ class POSTRequestMock(object):
def __init__(self, post_data, user_profile):
# type: (Dict[str, Any], UserProfile) -> None
self.REQUEST = self.POST = post_data
self.GET = {} # type: Dict[str, Any]
self.POST = post_data
self.user = user_profile
self._tornado_handler = DummyHandler()
self._log_data = {} # type: Dict[str, Any]