﻿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
25472	docs of login_required() should show the usage in class-based-views.	Thomas Güttler	nobody	"The docs of login_required() should show the usage in class-based-views.

This pattern seems common:

{{{
urlpatterns = [
    url(r'^about/', login_required(TemplateView.as_view(template_name=""secret.html""))),
}}}

from: https://docs.djangoproject.com/en/1.8/topics/class-based-views/intro/#decorating-in-urlconf

Please update the docs: https://docs.djangoproject.com/en/1.8/topics/auth/default/#django.contrib.auth.decorators.login_required

Since class-based views are the default today, I think it would be appropriate to list the class-based-view way first, and then list the decorating of view-methods.
 




"	Cleanup/optimization	closed	Documentation	1.8	Normal	wontfix			Unreviewed	0	0	0	0	0	0
