diff --git a/docs/topics/auth/default.txt b/docs/topics/auth/default.txt
index 5d93e43..97641d2 100644
a
|
b
|
To apply a permission to a :doc:`class-based generic view
|
572 | 572 | <django.views.generic.base.View.dispatch>` method on the class. See |
573 | 573 | :ref:`decorating-class-based-views` for details. |
574 | 574 | |
| 575 | If you have many generic views that should be decorated with :func:`~django.contrib.auth.decorators.login_required`, an alternative is to implement a mixin, like this:: |
| 576 | |
| 577 | class LoginRequiredMixin(object): |
| 578 | def as_view(cls): |
| 579 | return login_required(super(LoginRequiredMixin, cls).as_view()) |
| 580 | |
| 581 | class MyView(LoginRequiredMixin, ...): |
| 582 | # this is a generic view |
| 583 | ... |
575 | 584 | |
576 | 585 | .. _built-in-auth-views: |
577 | 586 | |