diff --git a/docs/topics/auth/default.txt b/docs/topics/auth/default.txt
index 5d93e43..c1385c1 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 |
| 576 | :func:`~django.contrib.auth.decorators.login_required`, an alternative is to |
| 577 | implement a mixin, like this:: |
| 578 | |
| 579 | class LoginRequiredMixin(object): |
| 580 | @classmethod |
| 581 | def as_view(cls): |
| 582 | return login_required(super(LoginRequiredMixin, cls).as_view()) |
| 583 | |
| 584 | class MyView(LoginRequiredMixin, ...): |
| 585 | # this is a generic view |
| 586 | ... |
575 | 587 | |
576 | 588 | .. _built-in-auth-views: |
577 | 589 | |