Advertisement
Guest User

Untitled

a guest
Apr 27th, 2015
216
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. class LoginRequiredMixin(object):
  2. """
  3. View mixin which requires that the user is authenticated.
  4. """
  5. @method_decorator(login_required)
  6. def dispatch(self, request, *args, **kwargs):
  7. return super(LoginRequiredMixin, self).dispatch(
  8. self, request, *args, **kwargs)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement