diff options
| author | Berker Peksag <berker.peksag@gmail.com> | 2014-11-29 08:19:59 +0200 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2014-11-29 10:31:09 -0500 |
| commit | c8dcded930a1d0ee5688ae2c2eeb8c33d942009f (patch) | |
| tree | 319e9868f808bca0cef788330a33225f42a3c9b7 /tests/admin_views/customadmin.py | |
| parent | 3131e9cef5f0a96f4fe667b0b1626c238153d1f1 (diff) | |
Fixed #17890 -- Added an extra_context parameter to AdminSite.password_change().
Diffstat (limited to 'tests/admin_views/customadmin.py')
| -rw-r--r-- | tests/admin_views/customadmin.py | 3 |
1 files changed, 3 insertions, 0 deletions
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 |
