mirror of
https://github.com/boostorg/website-v2.git
synced 2026-02-27 17:42:08 +00:00
13 lines
305 B
Python
13 lines
305 B
Python
from django.contrib import admin
|
|
|
|
from .models import Entry
|
|
|
|
|
|
class EntryAdmin(admin.ModelAdmin):
|
|
list_display = ["title", "author", "created_at", "approved_at", "publish_at"]
|
|
readonly_fields = ["modified_at"]
|
|
prepopulated_fields = {"slug": ["title"]}
|
|
|
|
|
|
admin.site.register(Entry, EntryAdmin)
|