Commit 0e906aea by Őry Máté

dashboard: fix RedirectToLoginMixin

it didn't reraise the exception if it occured but user is already logged in
parent 5880ee1e
...@@ -104,6 +104,8 @@ class RedirectToLoginMixin(AccessMixin): ...@@ -104,6 +104,8 @@ class RedirectToLoginMixin(AccessMixin):
return redirect_to_login(request.get_full_path(), return redirect_to_login(request.get_full_path(),
self.get_login_url(), self.get_login_url(),
self.get_redirect_field_name()) self.get_redirect_field_name())
else:
raise
class GroupCodeMixin(object): class GroupCodeMixin(object):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment