mirror of
https://github.com/django/django.git
synced 2025-07-28 15:44:20 +00:00
Fixed #17890 -- Added an extra_context parameter to AdminSite.password_change().
This commit is contained in:
parent
3131e9cef5
commit
c8dcded930
5 changed files with 15 additions and 2 deletions
|
@ -33,6 +33,9 @@ class Admin2(admin.AdminSite):
|
|||
def my_view(self, request):
|
||||
return HttpResponse("Django is a magical pony!")
|
||||
|
||||
def password_change(self, request, extra_context=None):
|
||||
return super(Admin2, self).password_change(request, {'spam': 'eggs'})
|
||||
|
||||
|
||||
class UserLimitedAdmin(UserAdmin):
|
||||
# used for testing password change on a user not in queryset
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue