diff --git a/digitalglarus/templates/digitalglarus/login.html b/digitalglarus/templates/digitalglarus/login.html index e8aa40e1..f61a3f9b 100644 --- a/digitalglarus/templates/digitalglarus/login.html +++ b/digitalglarus/templates/digitalglarus/login.html @@ -49,7 +49,7 @@

Forgot password?Find ID/Password

-

Not a member yet?Sign up now.

+

Not a member yet?Sign up now.

diff --git a/utils/views.py b/utils/views.py index 50f4aed4..e69bac1d 100644 --- a/utils/views.py +++ b/utils/views.py @@ -17,7 +17,10 @@ class SignupViewMixin(CreateView): success_url = None def get_success_url(self): - next_url = self.request.POST.get('next', self.success_url) + + next_url = self.request.POST.get('next') if self.request.POST.get('next')\ + else self.success_url + return next_url def form_valid(self, form):