Changes between Initial Version and Version 2 of Ticket #25472


Ignore:
Timestamp:
Sep 26, 2015, 11:13:11 AM (9 years ago)
Author:
Thomas Güttler
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #25472

    • Property Summary docs fordocs of login_required() should show the usage in class-based-views.
  • Ticket #25472 – Description

    initial v2  
    33This pattern seems common:
    44
    5 ```
     5{{{
    66urlpatterns = [
    77    url(r'^about/', login_required(TemplateView.as_view(template_name="secret.html"))),
    8 ```
     8}}}
     9
    910from: https://docs.djangoproject.com/en/1.8/topics/class-based-views/intro/#decorating-in-urlconf
    1011
Back to Top