[Bugfix] User first login

pull/828/merge
ibuler 2017-12-21 19:33:16 +08:00
parent da113b99af
commit 47040a61c8
1 changed files with 2 additions and 3 deletions

View File

@ -17,7 +17,7 @@ from django.views.decorators.csrf import csrf_protect
from django.views.decorators.debug import sensitive_post_parameters from django.views.decorators.debug import sensitive_post_parameters
from django.views.generic.base import TemplateView from django.views.generic.base import TemplateView
from django.views.generic.edit import FormView from django.views.generic.edit import FormView
# from formtools.wizard.views import SessionWizardView from formtools.wizard.views import SessionWizardView
from django.conf import settings from django.conf import settings
from django.utils import timezone from django.utils import timezone
@ -160,8 +160,7 @@ class UserResetPasswordView(TemplateView):
return HttpResponseRedirect(reverse('users:reset-password-success')) return HttpResponseRedirect(reverse('users:reset-password-success'))
class UserFirstLoginView(LoginRequiredMixin, ListView): class UserFirstLoginView(LoginRequiredMixin, SessionWizardView):
# class UserFirstLoginView(LoginRequiredMixin, SessionWizardView):
template_name = 'users/first_login.html' template_name = 'users/first_login.html'
form_list = [forms.UserProfileForm, forms.UserPublicKeyForm] form_list = [forms.UserProfileForm, forms.UserPublicKeyForm]
file_storage = default_storage file_storage = default_storage