Portail captif
[ongolaboy.git] / projets_django / bacgl_django / messagerie / admin.py
CommitLineData
db8092df 1from django.contrib import admin
2cd401e3 2from messagerie.models import Auth,Mailbox,Alias
db8092df 3
edf4ec4f 4class AuthAdmin(admin.ModelAdmin):
ce0081f9 5 search_fields = ['user']
16a65c6b 6
ce0081f9
WM
7class MailboxAdmin(admin.ModelAdmin):
8 search_fields = ['homedir']
9 list_display = ['proprietaire','homedir']
10
2cd401e3
WM
11class AliasAdmin(admin.ModelAdmin):
12 search_fields = ['nom']
13 list_display = ['nom','observations','date_creation']
14
edf4ec4f 15admin.site.register(Auth,AuthAdmin)
ce0081f9 16admin.site.register(Mailbox,MailboxAdmin)
2cd401e3 17admin.site.register(Alias,AliasAdmin)