forked from 00dani/lemoncurry
19 lines
403 B
Python
19 lines
403 B
Python
from django.contrib import admin
|
|
from .models import Entry, Syndication
|
|
|
|
|
|
class SyndicationInline(admin.TabularInline):
|
|
model = Syndication
|
|
extra = 1
|
|
|
|
|
|
class EntryAdmin(admin.ModelAdmin):
|
|
date_hierarchy = 'published'
|
|
list_display = ('title', 'id', 'kind', 'published')
|
|
list_filter = ('kind',)
|
|
inlines = (
|
|
SyndicationInline,
|
|
)
|
|
|
|
|
|
admin.site.register(Entry, EntryAdmin)
|