mirror of
https://github.com/django/django.git
synced 2025-07-18 18:55:18 +00:00
Tweak password admin change form view context. Refs #21293.
This commit is contained in:
parent
89e4226ed1
commit
1d42a86ec7
1 changed files with 1 additions and 0 deletions
|
@ -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',
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue