#31593: Replace hardcoded path to PasswordChangeView in UserChangeForm with 
of its URL
               Reporter:  Denis      |          Owner:  nobody
                   Type:             |         Status:  new
  Cleanup/optimization               |
              Component:  Forms      |        Version:  3.0
               Severity:  Normal     |       Keywords:  user, password,
           Triage Stage:             |  form, UserChangeForm
  Unreviewed                         |      Has patch:  0
    Needs documentation:  0          |    Needs tests:  0
Patch needs improvement:  0          |  Easy pickings:  1
                  UI/UX:  0          |
 I'm using built-in forms for authentication.
 Created {{{CustomUser}}} with
 users-and-the-built-in-auth-forms CustomUserCreationForm] and
 CustomUserChangeForm is based on

 If password is get successfully {{{help_text}}} is supplied with
 {{{'../password/'}}} path:
 help_text=_(...but you can change the password using <a href="{}">this
 if password:
     password.help_text = password.help_text.format('../password/')

 But aimed form has {{{password_change}}} URL in
 path('password_change/', views.PasswordChangeView.as_view(),

 And there is no easy way to substitute it (I mean it's a hardcoded string)

Ticket URL: <https://code.djangoproject.com/ticket/31593>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To view this discussion on the web visit 

Reply via email to