Changes between Initial Version and Version 1 of Ticket #28513
- Timestamp:
- 08/21/17 11:49:36 (6 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #28513
-
Property
Severity
changed from
Normal
toRelease blocker
-
Property
Component
changed from
Uncategorized
tocontrib.auth
-
Property
Summary
changed from
django 1.11 doesn't support POST for logout view
toLogoutView doesn't support POST, unlike the function-based logout() view
-
Property
Type
changed from
Uncategorized
toBug
-
Property
Triage Stage
changed from
Unreviewed
toAccepted
-
Property
Severity
changed from
-
Ticket #28513 – Description
initial v1 1 Hello, 1 The function-based `logout()` view allows using a POST request. 2 2 3 On Django versions < 1.11, the logout view allowed us to use a POST request. 4 5 Because no ''post'' method is defined on the new ''LogoutView'' introduced in https://github.com/django/django/commit/78963495d0caadb77eb97ccf319ef0ba3b204fb5, a POST request will raise 405 Method not allowed error. I don't think POST was officially supported (don't see it in the docs) but there's code in the view that checks for the redirect field in the POST data. 3 Because the new `LogoutView` introduced in 78963495d0caadb77eb97ccf319ef0ba3b204fb5 doesn't define a `post()` method, a POST request returns "405 Method not allowed". I don't think POST was officially supported (don't see it in the docs) but there's code in the view that checks for the redirect field in the POST data.