Fixed login/signup page background.Fixed payment input fields.Added login button on hosting page. Fixed hosting tests. Redirect to notifications page if an logged user try to login again.

This commit is contained in:
Levi 2016-06-04 02:59:37 -05:00
commit cca3a23263
6 changed files with 42 additions and 32 deletions

View file

@ -128,6 +128,11 @@ class LoginView(FormView):
return HttpResponseRedirect(self.get_success_url())
def get(self, request, *args, **kwargs):
if self.request.user.is_authenticated():
return HttpResponseRedirect(reverse('hosting:notifications'))
return super(LoginView, self).get(request, *args, **kwargs)
class SignupView(CreateView):
template_name = 'hosting/signup.html'