Changes between Initial Version and Version 2 of Ticket #25472
- Timestamp:
- Sep 26, 2015, 11:13:11 AM (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #25472
- Property Summary docs for → docs of login_required() should show the usage in class-based-views.
-
Ticket #25472 – Description
initial v2 3 3 This pattern seems common: 4 4 5 ``` 5 {{{ 6 6 urlpatterns = [ 7 7 url(r'^about/', login_required(TemplateView.as_view(template_name="secret.html"))), 8 ``` 8 }}} 9 9 10 from: https://docs.djangoproject.com/en/1.8/topics/class-based-views/intro/#decorating-in-urlconf 10 11