diff options
| author | Chris Beaven <smileychris@gmail.com> | 2011-08-17 04:06:42 +0000 |
|---|---|---|
| committer | Chris Beaven <smileychris@gmail.com> | 2011-08-17 04:06:42 +0000 |
| commit | 0e3d8bcb26b71bb2ca8bf24427ca5e7482ef9ffa (patch) | |
| tree | c1f7b49a180dc5576ae1ef0d462a0d788dbaeb07 | |
| parent | 283526a5a6854d1ba43f2b277d43cdd2b7f19c54 (diff) | |
Removing the old url resolution method in contrib.auth.admin.UserAdmin which was deprecated in Django 1.1
git-svn-id: http://code.djangoproject.com/svn/django/trunk@16621 bcc190cf-cafb-0310-a4f2-bffc1f526a37
| -rw-r--r-- | django/contrib/auth/admin.py | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/django/contrib/auth/admin.py b/django/contrib/auth/admin.py index 24d45e33bc..9bfc036f26 100644 --- a/django/contrib/auth/admin.py +++ b/django/contrib/auth/admin.py @@ -55,15 +55,6 @@ class UserAdmin(admin.ModelAdmin): ordering = ('username',) filter_horizontal = ('user_permissions',) - def __call__(self, request, url): - # this should not be here, but must be due to the way __call__ routes - # in ModelAdmin. - if url is None: - return self.changelist_view(request) - if url.endswith('password'): - return self.user_change_password(request, url.split('/')[0]) - return super(UserAdmin, self).__call__(request, url) - def get_fieldsets(self, request, obj=None): if not obj: return self.add_fieldsets |
