20 linhas
584 B
Python
20 linhas
584 B
Python
from django.contrib import admin
|
|
from simple_history.admin import SimpleHistoryAdmin
|
|
|
|
from .models import PikiPage
|
|
|
|
|
|
class PikiPageAdmin(SimpleHistoryAdmin):
|
|
list_display = ('rel_path', 'tags', 'deleted')
|
|
history_list_display = ('rel_path', 'tags', 'deleted')
|
|
search_fields = ('rel_path', 'tags', )
|
|
list_filter = (
|
|
('deleted', admin.BooleanFieldListFilter),
|
|
('other_perms_read', admin.BooleanFieldListFilter),
|
|
('other_perms_write', admin.BooleanFieldListFilter),
|
|
)
|
|
ordering = ["rel_path"]
|
|
|
|
|
|
admin.site.register(PikiPage, PikiPageAdmin)
|