From c8dcded930a1d0ee5688ae2c2eeb8c33d942009f Mon Sep 17 00:00:00 2001 From: Berker Peksag Date: Sat, 29 Nov 2014 08:19:59 +0200 Subject: Fixed #17890 -- Added an extra_context parameter to AdminSite.password_change(). --- tests/admin_views/customadmin.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tests/admin_views/customadmin.py') diff --git a/tests/admin_views/customadmin.py b/tests/admin_views/customadmin.py index 906fb871db..3276a3091d 100644 --- a/tests/admin_views/customadmin.py +++ b/tests/admin_views/customadmin.py @@ -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 -- cgit v1.3