dynamicweb/datacenterlight/admin.py

17 lines
497 B
Python
Raw Normal View History

2018-03-27 13:49:26 +00:00
from django.contrib import admin
from cms.admin.placeholderadmin import PlaceholderAdminMixin
2018-04-12 03:26:24 +00:00
from cms.extensions import PageExtensionAdmin
from .cms_models import CMSIntegration, CMSFaviconExtension
2018-03-27 13:49:26 +00:00
class CMSIntegrationAdmin(PlaceholderAdminMixin, admin.ModelAdmin):
list_display = ('name', 'domain')
2018-03-27 13:49:26 +00:00
2018-04-12 03:26:24 +00:00
class CMSFaviconExtensionAdmin(PageExtensionAdmin):
pass
2018-03-27 13:49:26 +00:00
admin.site.register(CMSIntegration, CMSIntegrationAdmin)
2018-04-12 03:26:24 +00:00
admin.site.register(CMSFaviconExtension, CMSFaviconExtensionAdmin)