Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Removing the old url resolution method in contrib.auth.admin.UserAdmi…

…n which was deprecated in Django 1.1

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 0e3d8bcb26b71bb2ca8bf24427ca5e7482ef9ffa 1 parent 283526a
@SmileyChris SmileyChris authored
Showing with 0 additions and 9 deletions.
  1. +0 −9 django/contrib/auth/
9 django/contrib/auth/
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.