We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 864d696 commit 98f6061Copy full SHA for 98f6061
two_factor/views/core.py
@@ -446,7 +446,7 @@ class SetupView(RedirectURLMixin, IdempotentSessionWizardView):
446
# https://github.com/django/django/blob/58df8aa40fe88f753ba79e091a52f236246260b3/django/contrib/auth/views.py#L63
447
def get_success_url(self):
448
url = self.get_redirect_url()
449
- return url or reverse('two_factor:setup_complete')
+ return url or reverse(self.success_url)
450
451
# Copied from django.contrib.auth.views.LoginView (Branch: stable/1.11.x)
452
# https://github.com/django/django/blob/58df8aa40fe88f753ba79e091a52f236246260b3/django/contrib/auth/views.py#L67
0 commit comments