Commit 5a516c4c authored by Levi Velázquez's avatar Levi Velázquez Committed by GitHub

Merge pull request #291 from ungleich/develop

Develop
parents 3fc9d2c4 760dd59e
......@@ -3,3 +3,5 @@
1.0.1: 2017-05-26
* [datacenterlight] Allow storage to shrink / grow only in 10th of GB
* [datacenterlight] Fix initially shown price
1.0.2: 2017-05-28
* [datacenterlight] Fixed login redirecting to blank page after logout
......@@ -40,6 +40,8 @@ class LoginViewMixin(FormView):
def get_success_url(self):
next_url = self.request.POST.get('next', self.success_url)
if not next_url:
return self.success_url
return next_url
def form_valid(self, form):
......@@ -54,7 +56,6 @@ class LoginViewMixin(FormView):
return HttpResponseRedirect(self.get_success_url())
def get(self, request, *args, **kwargs):
if self.request.user.is_authenticated():
return HttpResponseRedirect(self.get_success_url())
......
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 to comment