Code

Opened 9 years ago

Closed 9 years ago

Last modified 8 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@… 9 years ago.
Patch to implement decorators to restrict request method for views.

Download all attachments as: .zip

Change History (3)

Changed 9 years ago by cygnus@…

Patch to implement decorators to restrict request method for views.

comment:1 Changed 9 years ago by jacob

  • Owner changed from adrian to jacob
  • Status changed from new to assigned

comment:2 Changed 9 years ago by jacob

  • Resolution set to fixed
  • Status changed from assigned to closed

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

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.