This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from django.utils.decorators import method_decorator | |
from app.lib.ajax import login_required_ajax | |
class RequireSignInAjax(object): | |
@method_decorator(login_required_ajax()) | |
def dispatch(self, request, *args, **kwargs): | |
return super(RequireSignInAjax, self).dispatch(request, *args, **kwargs) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment