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):
|
2017-11-01 21:59:23 -04:00
|
|
|
date_hierarchy = 'created'
|
|
|
|
list_display = ('title', 'id', 'kind', 'created')
|
2017-10-29 07:44:11 -04:00
|
|
|
list_filter = ('kind',)
|
2017-10-24 22:45:33 -04:00
|
|
|
inlines = (
|
|
|
|
SyndicationInline,
|
|
|
|
)
|
|
|
|
|
|
|
|
|
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)
|