lots of updates :/
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user