fix #1465, poste uniquement pour linstant
[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
72db8238 5from models import Poste, JustificationQuestion
17353922
OL
6
7class PosteAdmin(VersionAdmin):
7ad0191a
OL
8 list_display = ('_titre', 'pourvu')
9
10 def _titre(self, obj):
11 return unicode(obj)
17353922 12
72db8238
OL
13class JustificationQuestionAdmin(admin.ModelAdmin):
14 pass
15
17353922 16admin.site.register(Poste, PosteAdmin)
72db8238 17admin.site.register(JustificationQuestion, JustificationQuestionAdmin)
17353922
OL
18
19
20