Merge branch 'develop' into hosting_i18n
This commit is contained in:
commit
6937fb98f0
4 changed files with 9 additions and 7 deletions
|
@ -1,2 +1,7 @@
|
||||||
1.0.0: 2017-05-25
|
1.0.0: 2017-05-25
|
||||||
* Initial stable release
|
* Initial stable release
|
||||||
|
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
|
||||||
|
|
|
@ -240,7 +240,7 @@
|
||||||
<p>2 GB RAM, </p>
|
<p>2 GB RAM, </p>
|
||||||
</div>
|
</div>
|
||||||
<div class="description">
|
<div class="description">
|
||||||
<p>{% trans "15 GB Storage (SSD)" %}</p>
|
<p>{% trans "10 GB Storage (SSD)" %}</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<a href="{% url 'datacenterlight:pricing' %}" class="btn btn-primary">{% trans "Order Now!" %}</a>
|
<a href="{% url 'datacenterlight:pricing' %}" class="btn btn-primary">{% trans "Order Now!" %}</a>
|
||||||
|
|
|
@ -122,10 +122,6 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
|
@ -40,6 +40,8 @@ class LoginViewMixin(FormView):
|
||||||
|
|
||||||
def get_success_url(self):
|
def get_success_url(self):
|
||||||
next_url = self.request.POST.get('next', self.success_url)
|
next_url = self.request.POST.get('next', self.success_url)
|
||||||
|
if not next_url:
|
||||||
|
return self.success_url
|
||||||
return next_url
|
return next_url
|
||||||
|
|
||||||
def form_valid(self, form):
|
def form_valid(self, form):
|
||||||
|
@ -54,7 +56,6 @@ class LoginViewMixin(FormView):
|
||||||
return HttpResponseRedirect(self.get_success_url())
|
return HttpResponseRedirect(self.get_success_url())
|
||||||
|
|
||||||
def get(self, request, *args, **kwargs):
|
def get(self, request, *args, **kwargs):
|
||||||
|
|
||||||
if self.request.user.is_authenticated():
|
if self.request.user.is_authenticated():
|
||||||
return HttpResponseRedirect(self.get_success_url())
|
return HttpResponseRedirect(self.get_success_url())
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue