Kaydet (Commit) 1d42a86e authored tarafından Ramiro Morales's avatar Ramiro Morales

Tweak password admin change form view context. Refs #21293.

üst 89e4226e
...@@ -156,6 +156,7 @@ class UserAdmin(admin.ModelAdmin): ...@@ -156,6 +156,7 @@ class UserAdmin(admin.ModelAdmin):
'save_as': False, 'save_as': False,
'show_save': True, 'show_save': True,
} }
context.update(admin.site.each_context())
return TemplateResponse(request, return TemplateResponse(request,
self.change_user_password_template or self.change_user_password_template or
'admin/auth/user/change_password.html', 'admin/auth/user/change_password.html',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment