From: jlaine Date: Mon, 24 May 2010 18:09:56 +0000 (+0000) Subject: add an example for search_fields in admin interface X-Git-Url: https://git.stderr.nl/gitweb?a=commitdiff_plain;h=42ae83d87bbe49ba8bad17eec598f1f7f25b2269;p=matthijs%2Fupstream%2Fdjango-ldapdb.git 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 --- 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)