Skip to content

Instantly share code, notes, and snippets.

@jacobian
Created September 20, 2011 15:58
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jacobian/1229495 to your computer and use it in GitHub Desktop.
Save jacobian/1229495 to your computer and use it in GitHub Desktop.
Login required mixin
class LoginRequired(object):
@method_decorator(login_required)
def dispatch(self, *args, **kwargs):
return super(LoginRequired, self).dispatch(*args, **kwargs)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment