Use DCLCalculatorPluginModel in DCLCalculatorPlugin

This commit is contained in:
PCoder 2018-04-09 21:18:50 +02:00
parent c7afbb32c0
commit dd30542f9f

View file

@ -6,7 +6,7 @@ from .cms_models import (
DCLFooterPluginModel, DCLLinkPluginModel, DCLNavbarDropdownPluginModel, DCLFooterPluginModel, DCLLinkPluginModel, DCLNavbarDropdownPluginModel,
DCLSectionIconPluginModel, DCLSectionImagePluginModel, DCLSectionIconPluginModel, DCLSectionImagePluginModel,
DCLSectionPluginModel, DCLNavbarPluginModel, DCLSectionPluginModel, DCLNavbarPluginModel,
DCLSectionPromoPluginModel DCLSectionPromoPluginModel, DCLCalculatorPluginModel
) )
from .models import VMTemplate from .models import VMTemplate
@ -76,7 +76,7 @@ class DCLSectionPromoPlugin(CMSPluginBase):
class DCLCalculatorPlugin(CMSPluginBase): class DCLCalculatorPlugin(CMSPluginBase):
module = "Datacenterlight" module = "Datacenterlight"
name = "DCL Calculator Plugin" name = "DCL Calculator Plugin"
model = DCLSectionPluginModel model = DCLCalculatorPluginModel
render_template = "datacenterlight/cms/calculator.html" render_template = "datacenterlight/cms/calculator.html"
cache = False cache = False
allow_children = True allow_children = True