Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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

…n which was deprecated in Django 1.1

git-svn-id: http://code.djangoproject.com/svn/django/trunk@16621 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 0e3d8bcb26b71bb2ca8bf24427ca5e7482ef9ffa 1 parent 283526a
Chris Beaven authored August 17, 2011

Showing 1 changed file with 0 additions and 9 deletions. Show diff stats Hide diff stats

  1. 9  django/contrib/auth/admin.py
9  django/contrib/auth/admin.py
@@ -55,15 +55,6 @@ class UserAdmin(admin.ModelAdmin):
55 55
     ordering = ('username',)
56 56
     filter_horizontal = ('user_permissions',)
57 57
 
58  
-    def __call__(self, request, url):
59  
-        # this should not be here, but must be due to the way __call__ routes
60  
-        # in ModelAdmin.
61  
-        if url is None:
62  
-            return self.changelist_view(request)
63  
-        if url.endswith('password'):
64  
-            return self.user_change_password(request, url.split('/')[0])
65  
-        return super(UserAdmin, self).__call__(request, url)
66  
-
67 58
     def get_fieldsets(self, request, obj=None):
68 59
         if not obj:
69 60
             return self.add_fieldsets

0 notes on commit 0e3d8bc

Please sign in to comment.
Something went wrong with that request. Please try again.