This commit is contained in:
Oliver Walters 2021-05-10 12:35:19 +10:00
parent be31154a44
commit 7e55e343e2

View File

@ -90,7 +90,7 @@ class AuthRequiredMiddleware(object):
if path not in urls and not path.startswith('/api/'): if path not in urls and not path.startswith('/api/'):
# Save the 'next' parameter to pass through to the login view # Save the 'next' parameter to pass through to the login view
return redirect('%s?next=%s' % (login, request.path)) return redirect('%s?next=%s' % (reverse_lazy('login'), request.path))
# Code to be executed for each request/response after # Code to be executed for each request/response after
# the view is called. # the view is called.