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