Ticket #10340: 10340-admin_select_related_user_perms.diff

File 10340-admin_select_related_user_perms.diff, 499 bytes (added by Ramiro Morales, 16 years ago)

(trivial) patch for

  • django/contrib/auth/admin.py

    diff -r 1e037755a348 django/contrib/auth/admin.py
    a b  
    3131    search_fields = ('username', 'first_name', 'last_name', 'email')
    3232    ordering = ('username',)
    3333    filter_horizontal = ('user_permissions',)
     34    list_select_related = True
    3435
    3536    def __call__(self, request, url):
    3637        # this should not be here, but must be due to the way __call__ routes
Back to Top