Add a non-trivial decorator example to class-based views docs
To save someone the hassle I just had trying to go beyond the all-too-simple @login_required example. This seemed to work for me at least, so I hope it is correct:
(r'^delete/(?P<pk>\d+)/$',
permission_required('main.delete_todolist')(DeleteTodolist.as_view())),
Attached a very simple suggestion for the docs, feel free to redo it if it is not in the style but I tried to look at other relevant examples.
Triage Stage: |
Unreviewed → Accepted
|
Easy pickings: |
unset
|
Triage Stage: |
Accepted → Ready for checkin
|
UI/UX: |
unset
|
Resolution: |
→ fixed
|
Status: |
new → closed
|
Possible documentation update