admin.py 399 B

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