first commit

This commit is contained in:
2025-10-11 03:50:49 -05:00
parent fcdef3ffe1
commit 9e9668172c
353 changed files with 47535 additions and 0 deletions

30
events/admin.py Normal file
View File

@@ -0,0 +1,30 @@
from django.contrib import admin
from .models import *
class ScraperAdmin(admin.ModelAdmin):
# prepopulated_fields = {"slug": ("shortname",)}
list_display = ("name", "items", "new_items", "last_ran")
class OrganizationAdmin(admin.ModelAdmin):
# prepopulated_fields = {"slug": ("shortname",)}
list_display = ( "name", "city",)
# list_filter = ("promo_type",)
class EventAdmin(admin.ModelAdmin):
# prepopulated_fields = {"slug": ("shortname",)}
list_display = ( "show_title", "event_type", "show_date",)
list_filter = ("venue", "event_type")
class PromoAdmin(admin.ModelAdmin):
# prepopulated_fields = {"slug": ("shortname",)}
list_display = ("title", "organization", "promo_type", "published")
list_filter = ("promo_type",)
# Register your models here.
admin.site.register(Scraper, ScraperAdmin)
admin.site.register(Event, EventAdmin)
admin.site.register(Organization, OrganizationAdmin)
admin.site.register(Promo, PromoAdmin)
admin.site.register(Calendar)