mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-03-11 09:04:54 +00:00
users: Redirect to users list on successful user creation
- Closes #1316 Signed-off-by: Joseph Nuthalapati <njoseph@thoughtworks.com> Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
parent
09bfb07255
commit
825db6ef15
@ -67,6 +67,10 @@ class UserCreate(ContextMixin, SuccessMessageMixin, CreateView):
|
||||
kwargs['request'] = self.request
|
||||
return kwargs
|
||||
|
||||
def get_success_url(self):
|
||||
"""Return the URL to redirect to in case of successful updation."""
|
||||
return reverse('users:index')
|
||||
|
||||
|
||||
class UserList(ContextMixin, django.views.generic.ListView):
|
||||
"""View to list users."""
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user