Opened 10 years ago

Closed 10 years ago

Last modified 7 years ago

#8125 closed (worksforme)

Multiple docorators in a view doesnt work

Reported by: lzanuz@… Owned by: nobody
Component: Template system Version: master
Severity: Keywords: multiple decorators
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no


I use apache / mod_python and python2.5 and I have in a lot of django projects views that have one o more decorators.
After the revision 7153 these decorators are executed just one of them. If a have two or more docorators in a view, just the first decorator are executed and the others are ignored.

Change History (2)

comment:1 Changed 10 years ago by Jacob

Resolution: worksforme
Status: newclosed

I've got many, many views using multiple decorators, and they work just fine with me. In fact, there's nothing magic about decorators that would prevent them from working when stacked. Please reopen with more information if you're *sure* this is a Django problem, but I'm 99% sure this is an issue with your code.

comment:2 Changed 7 years ago by Jacob

milestone: 1.0 beta

Milestone 1.0 beta deleted

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