c8f15a4f01c253d48197f231c222e6056188438d
[auf_rh_dae.git] / project / dae / admin.py
1 # -*- encoding: utf-8 -*-
2
3 from django.contrib import admin
4 from reversion.admin import VersionAdmin
5 from models import Poste, JustificationQuestion
6
7 class PosteAdmin(VersionAdmin):
8 list_display = ('_titre', 'pourvu')
9
10 def _titre(self, obj):
11 return unicode(obj)
12
13 class JustificationQuestionAdmin(admin.ModelAdmin):
14 pass
15
16 admin.site.register(Poste, PosteAdmin)
17 admin.site.register(JustificationQuestion, JustificationQuestionAdmin)
18
19
20