fix: 🚀 add signup success url
This commit is contained in:
parent
70e066e1de
commit
03680d5236
1 changed files with 4 additions and 0 deletions
|
|
@ -1,5 +1,6 @@
|
|||
from django.shortcuts import redirect
|
||||
from django.views.generic import FormView, TemplateView
|
||||
from django.urls import reverse
|
||||
|
||||
from moku.forms.user import ProfileForm, UserForm
|
||||
from moku.models.user import User
|
||||
|
|
@ -32,3 +33,6 @@ class ProfileView(TemplateView):
|
|||
class SignupView(FormView):
|
||||
template_name = "moku/signup.jinja"
|
||||
form_class = UserForm
|
||||
|
||||
def get_success_url(self):
|
||||
return reverse("feed")
|
||||
|
|
|
|||
Loading…
Reference in a new issue