#6699: contrib.auth decorators aren't using proper decorator syntax
------------------------+---------------------------------------------------
Reporter:  SmileyChris  |       Owner:  nobody      
  Status:  new          |   Component:  Contrib apps
 Version:  SVN          |    Keywords:              
   Stage:  Unreviewed   |   Has_patch:  0           
------------------------+---------------------------------------------------
 The related documentation
 (http://www.djangoproject.com/documentation/authentication/#the-login-
 required-decorator) is totally incorrect. Neither of the 2.3 or 2.4
 decoration methods stated will work:
 {{{
 #!python
 my_view = login_required(redirect_field_name='redirect_to')(my_view)
 @login_required(redirect_field_name='redirect_to')
 }}}

 since the definition is:
 {{{
 #!python
 def login_required(function=None,
 redirect_field_name=REDIRECT_FIELD_NAME):
 }}}

 Other decorator methods in this are also wrong.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/6699>
Django Code <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