generated from westfarn/web_django_template
Initial commit
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
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")
|
||||
Reference in New Issue
Block a user