lemoncurry/entries/admin.py

19 lines
415 B
Python
Raw Permalink Normal View History

from django.contrib import admin
from .models import Cat, Entry, Syndication
class SyndicationInline(admin.TabularInline):
model = Syndication
extra = 1
class EntryAdmin(admin.ModelAdmin):
2023-08-10 02:52:37 -04:00
date_hierarchy = "created"
list_display = ("title", "id", "kind", "created")
list_filter = ("kind",)
inlines = (SyndicationInline,)
admin.site.register(Cat)
admin.site.register(Entry, EntryAdmin)