python - Display search and list filter in Mezzanine Pages admin interface -
is there simple way display search , list filters in mezzanine's admin interface pages?
i tried putting following in application's admin.py, search , filters don't appear in admin interface:
from django.contrib import admin mezzanine.pages.models import page, richtextpage mezzanine.pages.admin import pageadmin admin.site.unregister(page) class custompageadmin(pageadmin): save_on_top = true list_display = ('title', 'publish_date', 'status') list_filter = ('title', 'publish_date', 'status') search_fields = ('title', 'content') admin.site.register(page, custompageadmin)
Comments
Post a Comment