from django.contrib import admin
from .models import Entry, ScriptureRef
class ScriptureInline(admin.TabularInline):
    model = ScriptureRef
    extra = 0
@admin.register(Entry)
class EntryAdmin(admin.ModelAdmin):
    list_display=("talk_title","entry_code","source","date_added","date_edited")
    search_fields=("talk_title","entry_code","source","subject","illustration","application","scripture_raw")
    inlines=[ScriptureInline]
