diff options
author | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2022-03-24 17:41:53 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-24 17:41:53 +0100 |
commit | 94d8ed55fa8e181b98f818a1b2805c66943cfeec (patch) | |
tree | 4da39a8ddb814c7bcc91feb4f6dde1174ebad549 /tests/auth_tests | |
parent | 1b695fbbc203c163bf7b8d78f6313a6c506fb938 (diff) | |
download | django-94d8ed55fa8e181b98f818a1b2805c66943cfeec.tar.gz |
Refs #15619 -- Logged out with POST requests in admin.
Diffstat (limited to 'tests/auth_tests')
-rw-r--r-- | tests/auth_tests/test_views.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auth_tests/test_views.py b/tests/auth_tests/test_views.py index 38e2234416..e056d0f002 100644 --- a/tests/auth_tests/test_views.py +++ b/tests/auth_tests/test_views.py @@ -71,7 +71,7 @@ class AuthViewsTestCase(TestCase): return response def logout(self): - response = self.client.get("/admin/logout/") + response = self.client.post("/admin/logout/") self.assertEqual(response.status_code, 200) self.assertNotIn(SESSION_KEY, self.client.session) |