﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
6699	contrib.auth decorators aren't using proper decorator syntax	Chris Beaven	nobody	"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."		closed	Contrib apps	dev		invalid			Unreviewed	0	0	0	0	0	0
