wip
[auf_rh_dae.git] / project / rh / lib.py
index da6bf77..72a06ed 100644 (file)
@@ -44,80 +44,118 @@ class PosteAdmin(admin.ModelAdmin):
 class PosteFinancementAdmin(admin.ModelAdmin):
     pass
 
+
 class PostePieceAdmin(admin.ModelAdmin):
     pass
 
+
 class PosteCommentaireAdmin(admin.ModelAdmin):
     pass
 
+
 class EmployeAdmin(admin.ModelAdmin):
     pass
 
+
 class EmployePieceAdmin(admin.ModelAdmin):
     pass
 
+
 class EmployeCommentaireAdmin(admin.ModelAdmin):
     pass
 
+
 class AyantDroitAdmin(admin.ModelAdmin):
     pass
 
+
 class AyantDroitCommentaireAdmin(admin.ModelAdmin):
     pass
 
+
 class DossierAdmin(admin.ModelAdmin):
-    pass
+    list_display = ('_employe', '_poste')
+
+    def _poste(self, dossier):
+        return unicode(dossier.poste.nom)
+    _poste.short_description = u'Poste'
+
+    def _employe(self, dossier):
+        return unicode(dossier.employe)
+    _employe.short_description = u'Employé'
+
 
 class DossierPieceAdmin(admin.ModelAdmin):
     pass
 
+
 class DossierCommentaireAdmin(admin.ModelAdmin):
     pass
 
+
 class RemunerationAdmin(admin.ModelAdmin):
     pass
 
+
 class ContratAdmin(admin.ModelAdmin):
     pass
 
+
 class EvenementAdmin(admin.ModelAdmin):
     pass
 
+
 class EvenementRemunerationAdmin(admin.ModelAdmin):
     pass
 
+
 class FamilleEmploiAdmin(admin.ModelAdmin):
     pass
 
+
 class TypePosteAdmin(admin.ModelAdmin):
     pass
 
+
 class TypeRemunerationAdmin(admin.ModelAdmin):
     pass
 
+
 class TypeRevalorisationAdmin(admin.ModelAdmin):
     pass
 
+
 class ServiceAdmin(admin.ModelAdmin):
     pass
 
+
 class OrganismeBstgAdmin(admin.ModelAdmin):
     pass
 
+
 class StatutAdmin(admin.ModelAdmin):
     pass
 
+
 class ClassementAdmin(admin.ModelAdmin):
     pass
 
+
 class TauxChangeAdmin(admin.ModelAdmin):
     pass
 
+
 class ValeurPointAdmin(admin.ModelAdmin):
     pass
 
+
 class DeviseAdmin(admin.ModelAdmin):
     pass
 
+
 class TypeContratAdmin(admin.ModelAdmin):
     pass
+
+
+class ResponsableImplantationAdmin(admin.ModelAdmin):
+    pass