2017-10-24 21:01:52 -04:00
|
|
|
from django.contrib import admin
|
2017-10-24 22:45:33 -04:00
|
|
|
from .models import 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):
|
2017-10-29 07:44:11 -04:00
|
|
|
date_hierarchy = 'published'
|
|
|
|
list_display = ('title', 'id', 'kind', 'published')
|
|
|
|
list_filter = ('kind',)
|
2017-10-24 22:45:33 -04:00
|
|
|
inlines = (
|
|
|
|
SyndicationInline,
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
admin.site.register(Entry, EntryAdmin)
|