Ticket #10340: 10340-admin_select_related_user_perms.diff
File 10340-admin_select_related_user_perms.diff, 499 bytes (added by , 16 years ago) |
---|
-
django/contrib/auth/admin.py
diff -r 1e037755a348 django/contrib/auth/admin.py
a b 31 31 search_fields = ('username', 'first_name', 'last_name', 'email') 32 32 ordering = ('username',) 33 33 filter_horizontal = ('user_permissions',) 34 list_select_related = True 34 35 35 36 def __call__(self, request, url): 36 37 # this should not be here, but must be due to the way __call__ routes