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):
|
|
|
|
inlines = (
|
|
|
|
SyndicationInline,
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
admin.site.register(Entry, EntryAdmin)
|