Opened 11 years ago

Closed 11 years ago

Last modified 10 years ago

#703 closed enhancement (fixed)

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: UI/UX:

Description

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.

Attachments (1)

request_method_decorators.diff (1.3 KB) - added by cygnus@… 11 years ago.
Patch to implement decorators to restrict request method for views.

Download all attachments as: .zip

Change History (3)

Changed 11 years ago by cygnus@…

Patch to implement decorators to restrict request method for views.

comment:1 Changed 11 years ago by Jacob

Owner: changed from Adrian Holovaty to Jacob
Status: newassigned

comment:2 Changed 11 years ago by Jacob

Resolution: fixed
Status: assignedclosed

(In [1016]) Fixed #703: added decorators to require that view be called with a given HTTP REQUEST_METHOD

Note: See TracTickets for help on using tickets.
Back to Top