12345678910111213141516171819202122232425262728 |
- from django.contrib import admin
- #from import_export.admin import ImportExportModelAdmin
- from .models import *
- @admin.register(GES_Fonction)
- class GES_FonctionAdmin(admin.ModelAdmin):
- #list_display = [field.name for field in GES_Fonction._meta.get_fields()]
- pass
- @admin.register(GES_APP)
- class GES_APPAdmin(admin.ModelAdmin):
- #list_display = [field.name for field in GES_APP._meta.get_fields()]
- pass
- @admin.register(GES_User)
- class GES_UserAdmin(admin.ModelAdmin):
- #list_display = [field.name for field in GES_User._meta.get_fields()]
- pass
- @admin.register(GES_APPLink)
- class GES_APPLinkAdmin(admin.ModelAdmin):
- list_display = ['GES_APPLink_User','GES_APPLink_APP','GES_APPLink_Create' ]
- search_fields = ['GES_APPLink_User__GES_Nom', 'GES_APPLink_User__GES_Prenom', 'GES_APPLink_Login']
- pass
|