from django.contrib import admin from utils.widgets import LGEntryForm from .models import Prompt @admin.register(Prompt) class PromptAdmin(admin.ModelAdmin): form = LGEntryForm prepopulated_fields = {"slug": ('title',)} list_display = ('title', 'source', 'prompt_type') list_filter = ('source', 'prompt_type') fieldsets = ( ('Prompt', { 'fields': ( 'title', 'subtitle', 'body_markdown', ('pub_date', 'prompt_type'), ('slug','source'), 'meta_description' ), 'classes': ( 'show', 'extrapretty', 'wide' ) } ), )