From 42ae83d87bbe49ba8bad17eec598f1f7f25b2269 Mon Sep 17 00:00:00 2001 From: jlaine Date: Mon, 24 May 2010 18:09:56 +0000 Subject: [PATCH] add an example for search_fields in admin interface git-svn-id: https://svn.bolloretelecom.eu/opensource/django-ldapdb/trunk@875 e071eeec-0327-468d-9b6a-08194a12b294 --- examples/admin.py | 1 + 1 file changed, 1 insertion(+) diff --git a/examples/admin.py b/examples/admin.py index 29fde3e..8948bbc 100644 --- a/examples/admin.py +++ b/examples/admin.py @@ -26,6 +26,7 @@ class LdapGroupAdmin(admin.ModelAdmin): class LdapUserAdmin(admin.ModelAdmin): exclude = ['dn', 'password', 'photo'] + search_fields = ['first_name', 'last_name', 'full_name', 'username'] admin.site.register(LdapGroup, LdapGroupAdmin) admin.site.register(LdapUser, LdapUserAdmin) -- 2.30.2