mirror of
https://github.com/Sosokker/ku-polls.git
synced 2025-12-19 13:34:05 +01:00
Change redirect page after signup.
This commit is contained in:
parent
707a8de93d
commit
0987543e53
@ -111,7 +111,7 @@ class ResultsView(LoginRequiredMixin, generic.DetailView):
|
|||||||
|
|
||||||
class SignUpView(generic.CreateView):
|
class SignUpView(generic.CreateView):
|
||||||
form_class = SignUpForm
|
form_class = SignUpForm
|
||||||
success_url = reverse_lazy('login')
|
success_url = reverse_lazy('polls:index')
|
||||||
template_name = 'registration/signup.html'
|
template_name = 'registration/signup.html'
|
||||||
|
|
||||||
def form_valid(self, form):
|
def form_valid(self, form):
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user