Projet

Général

Profil

0002-manager-use-proper-submit-label-for-password-change-.patch

Frédéric Péters, 02 mai 2021 18:10

Télécharger (1,11 ko)

Voir les différences:

Subject: [PATCH 2/2] manager: use proper submit label for password change view
 (#53650)

 src/authentic2/manager/user_views.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
src/authentic2/manager/user_views.py
564 564
users_export_progress = UsersExportProgressView.as_view()
565 565

  
566 566

  
567
class UserChangePasswordView(BaseEditView):
567
class UserChangePasswordView(ActionMixin, BaseEditView):
568 568
    template_name = 'authentic2/manager/form.html'
569 569
    model = get_user_model()
570 570
    form_class = UserChangePasswordForm
571 571
    permissions = ['custom_user.change_password_user']
572 572
    title = _('Change user password')
573
    action = _('Submit')
573 574
    success_url = '..'
574 575
    slug_field = 'uuid'
575 576

  
576
-