admin.py 542 B

123456789101112131415161718192021
  1. from django.contrib import admin
  2. from import_export.admin import ImportExportModelAdmin
  3. from .models import *
  4. @admin.register(Clinique)
  5. class CliniqueAdmin(admin.ModelAdmin):
  6. list_display = ('CLIN_Nom', 'CLIN_Anag')
  7. pass
  8. @admin.register(Services)
  9. class ServicesAdmin(admin.ModelAdmin):
  10. list_display = ('SERVICE_Clin', 'SERVICE_Anag', 'SERVICE_Nom')
  11. list_filter = ('SERVICE_Clin',)
  12. pass
  13. @admin.register(Batiments)
  14. class BATAdmin(admin.ModelAdmin):
  15. list_display = ('BAT_Clin', 'BAT_Anag', 'BAT_Nom')
  16. list_filter = ('BAT_Clin',)
  17. pass