lots of updates :/

This commit is contained in:
2025-11-30 15:34:08 -05:00
parent 61e198ff55
commit e06a5d49f8
84 changed files with 6614 additions and 2297 deletions

View File

@@ -13,13 +13,16 @@ class OrganizationAdmin(admin.ModelAdmin):
class EventAdmin(admin.ModelAdmin):
# prepopulated_fields = {"slug": ("shortname",)}
list_display = ( "show_title", "event_type", "show_date", "calendar")
list_filter = ("calendar", "venue", "event_type",)
list_display = ( "show_title", "event_type", "show_date", "scraper")
list_filter = ("calendar", "event_type", "scraper",)
class PromoAdmin(admin.ModelAdmin):
# prepopulated_fields = {"slug": ("shortname",)}
list_display = ("title", "organization", "promo_type", "published")
list_filter = ("promo_type",)
list_display = ("title", "organization", "get_calendars", "published")
list_filter = ("calendar__shortcode", "promo_type")
def get_calendars(self, obj):
return "\n".join([p.shortcode for p in obj.calendar.all()])
# Register your models here.