mirror of
https://gitlab.crans.org/mediatek/med.git
synced 2024-11-26 22:07:09 +00:00
21 lines
566 B
Python
21 lines
566 B
Python
|
|
from reversion.admin import VersionAdmin
|
|
from django.contrib import admin
|
|
from django.contrib.auth.models import Group
|
|
|
|
from .models import Auteur, Emprunt, Media
|
|
|
|
class AuteurAdmin(VersionAdmin):
|
|
list_display = ('nom',)
|
|
|
|
class MediaAdmin(VersionAdmin):
|
|
list_display = ('titre','cote')
|
|
|
|
class EmpruntAdmin(VersionAdmin):
|
|
list_display = ('media','user','date_emprunt', 'date_rendu', 'permanencier_emprunt', 'permanencier_rendu')
|
|
|
|
|
|
admin.site.register(Auteur, AuteurAdmin)
|
|
admin.site.register(Media, MediaAdmin)
|
|
admin.site.register(Emprunt, EmpruntAdmin)
|