projects
/
matthijs
/
upstream
/
django-ldapdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
use self.query in compiler
[matthijs/upstream/django-ldapdb.git]
/
examples
/
admin.py
diff --git
a/examples/admin.py
b/examples/admin.py
index 8b33ecb3517052f2c098f62dc7e09e4ad2d2620d..8c337b6fc57bf26db48e1582b648b30080eda07a 100644
(file)
--- a/
examples/admin.py
+++ b/
examples/admin.py
@@
-23,10
+23,12
@@
from examples.models import LdapGroup, LdapUser
class LdapGroupAdmin(admin.ModelAdmin):
exclude = ['dn', 'usernames']
class LdapGroupAdmin(admin.ModelAdmin):
exclude = ['dn', 'usernames']
+ list_display = ['name', 'gid']
search_fields = ['name']
class LdapUserAdmin(admin.ModelAdmin):
exclude = ['dn', 'password', 'photo']
search_fields = ['name']
class LdapUserAdmin(admin.ModelAdmin):
exclude = ['dn', 'password', 'photo']
+ list_display = ['username', 'first_name', 'last_name', 'email', 'uid']
search_fields = ['first_name', 'last_name', 'full_name', 'username']
admin.site.register(LdapGroup, LdapGroupAdmin)
search_fields = ['first_name', 'last_name', 'full_name', 'username']
admin.site.register(LdapGroup, LdapGroupAdmin)