Files
web_django_template/site/blog/admin.py
T
westfarnandCursor 787f0e48fb Populate the client website template with catalog feature flags.
Extract always-on public/portal/UTM plus optional email_sms, directmail, blog, payments, social, and social_ai so new client sites can be bootstrapped from this seed.

Refs #1
Refs #2

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-26 07:55:26 -05:00

12 lines
339 B
Python

from django.contrib import admin
from blog.models import Post
@admin.register(Post)
class PostAdmin(admin.ModelAdmin):
list_display = ("title", "is_published", "published_at", "author", "updated_at")
list_filter = ("is_published",)
prepopulated_fields = {"slug": ("title",)}
search_fields = ("title", "excerpt", "body")