Decorators to restrict views based on REQUEST_METHOD would be great.
Reported by: |
cygnus@… |
Owned by: |
Jacob |
Component:
|
Core (Other)
|
Version:
|
|
Severity:
|
normal
|
Keywords:
|
|
Cc:
|
|
Triage Stage:
|
Unreviewed
|
Has patch:
|
no
|
Needs documentation:
|
no
|
Needs tests:
|
no
|
Patch needs improvement:
|
no
|
Easy pickings:
|
no
|
UI/UX:
|
no
|
Sometimes it's great to restrict whether views run based on the REQUEST_METHOD of the request being processed. If code expects to read from request.POST, the request method should be enforceable.
Patch to implement decorators to restrict request method for views.