Make the logout action use POST.

Review Request #14840 — Created Feb. 19, 2026 and updated

Information

Review Board
master

Reviewers

As of Django 5.0, the LogoutView only works with POST operations, not
GET. This change adds a special view for the logout action which
creates and submits a form (just containing the CSRF token) in order to
perform the logout.

  • Ran unit tests.
  • Logged out from the UI.
Summary ID
Make the logout action use POST.
As of Django 5.0, the LogoutView only works with `POST` operations, not `GET`. This change adds a special view for the logout action which creates and submits a form (just containing the CSRF token) in order to perform the logout. Testing Done: - Ran unit tests. - Logged out from the UI.
otwzkrzoskuplswkyqtvwqkptnyqolok
Checks run (2 succeeded)
flake8 passed.
JSHint passed.