fix month count
[auf_rh_dae.git] / project / dae / admin.py
CommitLineData
17353922
OL
1# -*- encoding: utf-8 -*-
2
3from django.contrib import admin
4from reversion.admin import VersionAdmin
4be5ead0 5from models import Poste, Dossier
17353922
OL
6
7class PosteAdmin(VersionAdmin):
b473fbb6 8 list_display = ('nom', 'implantation', 'etat', )
515124ec 9
4be5ead0
OL
10class DossierAdmin(VersionAdmin):
11 list_display = ('_poste', '_implantation', 'employe', 'etat', )
12
13 def _poste(self, obj):
14 return obj.poste.nom
15
16 def _implantation(self, obj):
17 return obj.poste.implantation
17353922
OL
18
19admin.site.register(Poste, PosteAdmin)
4be5ead0 20admin.site.register(Dossier, DossierAdmin)