2010-09-26 21:32:53 +00:00
|
|
|
from django.contrib import admin
|
2023-10-19 22:44:24 +00:00
|
|
|
|
2023-10-19 22:52:39 +00:00
|
|
|
from .models import Event, EventMedia, EventTag
|
2010-09-26 21:32:53 +00:00
|
|
|
|
|
|
|
admin.site.register(EventTag)
|
|
|
|
|
2024-03-20 22:35:00 +00:00
|
|
|
@admin.register(Event)
|
2010-09-26 21:32:53 +00:00
|
|
|
class EventAdmin(admin.ModelAdmin):
|
|
|
|
list_display = ("title", "date", "date_tentative", "location")
|
|
|
|
list_filter = ['date']
|
|
|
|
date_hierarchy = 'date'
|
|
|
|
search_fields = ["title", "description", "earth_location"]
|
|
|
|
prepopulated_fields = {'slug' : ("title",) }
|
|
|
|
|
|
|
|
|
2024-03-20 22:35:00 +00:00
|
|
|
@admin.register(EventMedia)
|
2010-09-26 21:32:53 +00:00
|
|
|
class EventMediaAdmin(admin.ModelAdmin):
|
|
|
|
list_display = ("event", "format", "novel")
|
|
|
|
|
|
|
|
|
|
|
|
|