2017-10-24 21:01:52 -04:00
|
|
|
from django.contrib import admin
|
2017-11-19 19:37:36 -05:00
|
|
|
from .models import Cat, Entry, Syndication
|
2017-10-24 21:01:52 -04:00
|
|
|
|
|
|
|
|
2017-10-24 22:45:33 -04:00
|
|
|
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,)
|
2017-10-24 22:45:33 -04:00
|
|
|
|
|
|
|
|
2017-11-19 19:37:36 -05:00
|
|
|
admin.site.register(Cat)
|
2017-10-24 22:45:33 -04:00
|
|
|
admin.site.register(Entry, EntryAdmin)
|