Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class LoginRequiredMixin(object):
- """
- View mixin which requires that the user is authenticated.
- """
- @method_decorator(login_required)
- def dispatch(self, request, *args, **kwargs):
- return super(LoginRequiredMixin, self).dispatch(
- self, request, *args, **kwargs)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement