#19056: Admin password change page relies on user.username
-------------------------------+--------------------------------------
     Reporter:  russellm       |                    Owner:  nobody
         Type:  Bug            |                   Status:  closed
    Component:  contrib.admin  |                  Version:  master
     Severity:  Normal         |               Resolution:  fixed
     Keywords:                 |             Triage Stage:  Unreviewed
    Has patch:  0              |      Needs documentation:  0
  Needs tests:  0              |  Patch needs improvement:  0
Easy pickings:  0              |                    UI/UX:  0
-------------------------------+--------------------------------------

Comment (by gabejackson):

 this also applies to the 'title' context variable set in UserAdmin's def
 user_change_password(self, request, id, form_url=''): somewhere about:

 context = {
             'title': _('Change password: %s') % escape(user.username),
             'adminForm': adminForm,

 this should be changed to

 context = {
             'title': _('Change password: %s') %
 escape(user.get_username()),
             'adminForm': adminForm,

 i'm on the run right now, but perhaps somebody could commit that.

 Greetings,

 Gabe

-- 
Ticket URL: <https://code.djangoproject.com/ticket/19056#comment:2>
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 post to this group, send email to django-updates@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to