mirror of
https://github.com/django/django.git
synced 2025-10-24 22:26:08 +00:00
Fixed #21448 -- Fixed test client logout with cookie-based sessions
Thanks Gunnar Scherf for the report and the suggested patch.
This commit is contained in:
@@ -600,6 +600,7 @@ class Client(RequestFactory):
|
||||
else:
|
||||
request.session = engine.SessionStore()
|
||||
logout(request)
|
||||
self.cookies = SimpleCookie()
|
||||
|
||||
def _handle_redirects(self, response, **extra):
|
||||
"Follows any redirects by requesting responses from the server using GET."
|
||||
|
||||
Reference in New Issue
Block a user