phantasmobile/app/page/admin.py

8 lines
228 B
Python
Raw Normal View History

2023-07-25 19:03:54 +00:00
from django.contrib import admin
from . import models
@admin.decorators.register(models.Page)
class PageAdmin(admin.ModelAdmin):
list_display = ('slug', 'title', 'created', 'modified')
search_fields = ['title', 'slug']