mirror of
https://github.com/django/django.git
synced 2025-10-31 09:41:08 +00:00
Fixed #18659 -- Deprecated request.REQUEST and MergeDict
Thanks Aymeric Augustin for the suggestion.
This commit is contained in:
committed by
Tim Graham
parent
98788d3c3a
commit
2fb5a51fa3
@@ -526,7 +526,6 @@ class LoginTest(AuthViewsTestCase):
|
||||
req.COOKIES[settings.CSRF_COOKIE_NAME] = token1
|
||||
req.method = "POST"
|
||||
req.POST = {'username': 'testclient', 'password': password, 'csrfmiddlewaretoken': token1}
|
||||
req.REQUEST = req.POST
|
||||
|
||||
# Use POST request to log in
|
||||
SessionMiddleware().process_request(req)
|
||||
|
||||
Reference in New Issue
Block a user