admin.py 393 B

12345678910111213
  1. from django.contrib import admin
  2. from butler.models import *
  3. from butler.utils import create_pages_clean_admin
  4. @admin.register(ButlerPage)
  5. class ButlerPageAdmin(admin.ModelAdmin):
  6. list_display = ('title', 'slug')
  7. actions = [create_pages_clean_admin]
  8. @admin.register(FAQmodel)
  9. class ButlerPageAdmin(admin.ModelAdmin):
  10. list_display = ('question',)
  11. #admin.site.register(ButlerPage)