1
0

admin.py 808 B

12345678910111213141516171819202122232425262728
  1. from django.contrib import admin
  2. #from import_export.admin import ImportExportModelAdmin
  3. from .models import *
  4. @admin.register(GES_Fonction)
  5. class GES_FonctionAdmin(admin.ModelAdmin):
  6. #list_display = [field.name for field in GES_Fonction._meta.get_fields()]
  7. pass
  8. @admin.register(GES_APP)
  9. class GES_APPAdmin(admin.ModelAdmin):
  10. #list_display = [field.name for field in GES_APP._meta.get_fields()]
  11. pass
  12. @admin.register(GES_User)
  13. class GES_UserAdmin(admin.ModelAdmin):
  14. #list_display = [field.name for field in GES_User._meta.get_fields()]
  15. pass
  16. @admin.register(GES_APPLink)
  17. class GES_APPLinkAdmin(admin.ModelAdmin):
  18. list_display = ['GES_APPLink_User','GES_APPLink_APP','GES_APPLink_Create' ]
  19. search_fields = ['GES_APPLink_User__GES_Nom', 'GES_APPLink_User__GES_Prenom', 'GES_APPLink_Login']
  20. pass