2019-09-01 12:13:50 +02:00
|
|
|
from django.contrib import admin
|
|
|
|
|
2019-09-08 16:51:49 +02:00
|
|
|
from .models import Evenement, Illustration
|
2019-09-01 12:13:50 +02:00
|
|
|
|
2019-09-08 16:51:49 +02:00
|
|
|
class IllustrationInline(admin.TabularInline):
|
|
|
|
model = Illustration
|
|
|
|
|
|
|
|
@admin.register(Evenement)
|
|
|
|
class EvenementAdmin(admin.ModelAdmin):
|
2019-09-01 12:13:50 +02:00
|
|
|
ordering=["-date"]
|
2019-09-08 16:51:49 +02:00
|
|
|
inlines = [
|
|
|
|
IllustrationInline,
|
|
|
|
]
|