dynamicweb/datacenterlight/admin.py

20 lines
602 B
Python
Raw Permalink 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-05-23 22:27:01 +00:00
from .models import VMPricing, VMTemplate
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)
2018-04-15 19:37:51 +00:00
admin.site.register(VMPricing)
2018-05-23 22:27:01 +00:00
admin.site.register(VMTemplate)