#14222: csrf_exempt decorator is useless if not the top-most decorator
-----------------------------------------------------------------+----------
          Reporter:  Joshua "jag" Ginsberg <[email protected]>  |         
Owner:  nobody
            Status:  closed                                      |     
Milestone:        
         Component:  Uncategorized                               |       
Version:  1.2   
        Resolution:  invalid                                     |      
Keywords:        
             Stage:  Unreviewed                                  |     
Has_patch:  0     
        Needs_docs:  0                                           |   
Needs_tests:  0     
Needs_better_patch:  0                                           |  
-----------------------------------------------------------------+----------
Changes (by lukeplant):

  * status:  new => closed
  * needs_better_patch:  => 0
  * resolution:  => invalid
  * needs_tests:  => 0
  * needs_docs:  => 0

Comment:

 I think this will depend on which other decorators are being used, and
 whether they use `functools.wraps` or not.  All Django-provided decorators
 do use `functools.wraps` or equivalent, as far as I know, and it is not
 possible to make the decorator work as expected in combination with other
 decorators that don't.

 I'm going to close as INVALID for now, as there isn't enough information
 to know if there is a bug in Django or not.  If you can identify a Django-
 provided decorator which is misbehaving, please re-open.  Thanks!

-- 
Ticket URL: <http://code.djangoproject.com/ticket/14222#comment:1>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to