ajax_redirect = True
def __call__(self, request):
- if request.user.is_authenticated():
+ if request.user.is_authenticated:
return self.redirect_or_refresh(
request, '/',
message=_('Already logged in as user %(user)s', ) % {'user': request.user.username})
honeypot = True
def __call__(self, request):
- if request.user.is_authenticated():
+ if request.user.is_authenticated:
return self.redirect_or_refresh(
request, '/',
message=_('Already logged in as user %(user)s', ) % {'user': request.user.username})