Author: SmileyChris
Date: 2011-08-16 21:06:42 -0700 (Tue, 16 Aug 2011)
New Revision: 16621
Modified:
django/trunk/django/contrib/auth/admin.py
Log:
Removing the old url resolution method in contrib.auth.admin.UserAdmin which
was deprecated in Django 1.1
Modified: django/trunk/django/contrib/auth/admin.py
===================================================================
--- django/trunk/django/contrib/auth/admin.py 2011-08-15 09:01:12 UTC (rev
16620)
+++ django/trunk/django/contrib/auth/admin.py 2011-08-17 04:06:42 UTC (rev
16621)
@@ -55,15 +55,6 @@
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
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en.