From 465431d858c2ed5c8df86e15e5097b4874905fcb Mon Sep 17 00:00:00 2001 From: PCoder Date: Sun, 15 Apr 2018 23:24:15 +0200 Subject: [PATCH] Add DCLCustomPricingPlugin --- datacenterlight/cms_plugins.py | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/datacenterlight/cms_plugins.py b/datacenterlight/cms_plugins.py index 9bb87bd8..d504956a 100644 --- a/datacenterlight/cms_plugins.py +++ b/datacenterlight/cms_plugins.py @@ -6,7 +6,7 @@ from .cms_models import ( DCLFooterPluginModel, DCLLinkPluginModel, DCLNavbarDropdownPluginModel, DCLSectionIconPluginModel, DCLSectionImagePluginModel, DCLSectionPluginModel, DCLNavbarPluginModel, - DCLSectionPromoPluginModel + DCLSectionPromoPluginModel, DCLCustomPricingModel ) from .models import VMTemplate, VMPricing @@ -81,7 +81,7 @@ class DCLCalculatorPlugin(CMSPluginBase): cache = False allow_children = True child_classes = [ - 'DCLSectionPromoPlugin', 'UngleichHTMLPlugin' + 'DCLSectionPromoPlugin', 'UngleichHTMLPlugin', 'DCLCustomPricingPlugin' ] def render(self, context, instance, placeholder): @@ -100,6 +100,14 @@ class DCLCalculatorPlugin(CMSPluginBase): 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 class DCLBannerListPlugin(CMSPluginBase): module = "Datacenterlight"