Add DCLCustomPricingPlugin
This commit is contained in:
parent
45fc0dbaac
commit
465431d858
1 changed files with 10 additions and 2 deletions
|
@ -6,7 +6,7 @@ from .cms_models import (
|
||||||
DCLFooterPluginModel, DCLLinkPluginModel, DCLNavbarDropdownPluginModel,
|
DCLFooterPluginModel, DCLLinkPluginModel, DCLNavbarDropdownPluginModel,
|
||||||
DCLSectionIconPluginModel, DCLSectionImagePluginModel,
|
DCLSectionIconPluginModel, DCLSectionImagePluginModel,
|
||||||
DCLSectionPluginModel, DCLNavbarPluginModel,
|
DCLSectionPluginModel, DCLNavbarPluginModel,
|
||||||
DCLSectionPromoPluginModel
|
DCLSectionPromoPluginModel, DCLCustomPricingModel
|
||||||
)
|
)
|
||||||
from .models import VMTemplate, VMPricing
|
from .models import VMTemplate, VMPricing
|
||||||
|
|
||||||
|
@ -81,7 +81,7 @@ class DCLCalculatorPlugin(CMSPluginBase):
|
||||||
cache = False
|
cache = False
|
||||||
allow_children = True
|
allow_children = True
|
||||||
child_classes = [
|
child_classes = [
|
||||||
'DCLSectionPromoPlugin', 'UngleichHTMLPlugin'
|
'DCLSectionPromoPlugin', 'UngleichHTMLPlugin', 'DCLCustomPricingPlugin'
|
||||||
]
|
]
|
||||||
|
|
||||||
def render(self, context, instance, placeholder):
|
def render(self, context, instance, placeholder):
|
||||||
|
@ -100,6 +100,14 @@ class DCLCalculatorPlugin(CMSPluginBase):
|
||||||
return context
|
return context
|
||||||
|
|
||||||
|
|
||||||
|
@plugin_pool.register_plugin
|
||||||
|
class DCLCustomPricingPlugin(CMSPluginBase):
|
||||||
|
module = "Datacenterlight"
|
||||||
|
name = "DCL Custom Pricing Plugin"
|
||||||
|
model = DCLCustomPricingModel
|
||||||
|
render_plugin = False
|
||||||
|
|
||||||
|
|
||||||
@plugin_pool.register_plugin
|
@plugin_pool.register_plugin
|
||||||
class DCLBannerListPlugin(CMSPluginBase):
|
class DCLBannerListPlugin(CMSPluginBase):
|
||||||
module = "Datacenterlight"
|
module = "Datacenterlight"
|
||||||
|
|
Loading…
Reference in a new issue