From 0e3d8bcb26b71bb2ca8bf24427ca5e7482ef9ffa Mon Sep 17 00:00:00 2001 From: Chris Beaven Date: Wed, 17 Aug 2011 04:06:42 +0000 Subject: [PATCH] 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 --- django/contrib/auth/admin.py | 9 --------- 1 file changed, 9 deletions(-) diff --git a/django/contrib/auth/admin.py b/django/contrib/auth/admin.py index 24d45e33bcb..9bfc036f26b 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