class ImportAdmin(admin.ModelAdmin,):
- list_filter = ('etat', )
-
def _etat(self, obj):
return obj.get_etat_display()
class ImportDossierAdmin(ImportAdmin):
- list_display = ('_poste', '_employe', '_dae', '_etat',)
+ search_fields = ('employe__nom', 'employe__prenom', 'poste__nom', )
+ list_display = ('_poste', '_employe', '_dae',)
+ list_filter = ('poste__implantation', 'etat', )
actions = ['importer_dans_RH', ]
def _employe(self, obj):
class ImportPosteAdmin(ImportAdmin):
- list_display = ('nom', '_implantation', '_dae', )
+ search_fields = ('poste__nom', )
+ list_display = ('nom', '_implantation', '_dae', '_etat',)
+ list_filter = ('implantation',)
actions = ['importer_dans_RH', ]
def _implantation(self, obj):