diff options
| author | Claude Paroz <claude@2xlibre.net> | 2015-02-06 23:25:15 +0100 |
|---|---|---|
| committer | Claude Paroz <claude@2xlibre.net> | 2015-02-08 20:55:09 +0100 |
| commit | 32e6a7d3a57b2287d55e8b8efa4e8cb7643b1720 (patch) | |
| tree | 305218f5ea11a368ae1c167d52bcd8d65da8b037 /django/contrib/auth/admin.py | |
| parent | 9033003d97d29f7754b0840333f6f362c0cd31f7 (diff) | |
Replaced hardcoded URLs in admin_* tests
Refs #15779. This will allow easier admin URL changes, when needed.
Thanks Simon Charette for the review.
Diffstat (limited to 'django/contrib/auth/admin.py')
| -rw-r--r-- | django/contrib/auth/admin.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/django/contrib/auth/admin.py b/django/contrib/auth/admin.py index b791609031..928236914a 100644 --- a/django/contrib/auth/admin.py +++ b/django/contrib/auth/admin.py @@ -79,7 +79,7 @@ class UserAdmin(admin.ModelAdmin): def get_urls(self): return [ - url(r'^(\d+)/password/$', self.admin_site.admin_view(self.user_change_password)), + url(r'^(\d+)/password/$', self.admin_site.admin_view(self.user_change_password), name='auth_user_password_change'), ] + super(UserAdmin, self).get_urls() def lookup_allowed(self, lookup, value): |
