whydcl section style fix, footer style fix
This commit is contained in:
parent
a895f7caa7
commit
883118e050
7 changed files with 76 additions and 43 deletions
|
|
@ -8,6 +8,7 @@ from .cms_models import (
|
|||
DCLSectionIconPluginModel, DCLSectionImagePluginModel,
|
||||
DCLSectionPluginModel,
|
||||
)
|
||||
from .models import VMTemplate
|
||||
|
||||
|
||||
@plugin_pool.register_plugin
|
||||
|
|
@ -49,6 +50,13 @@ class DCLCalculatorPlugin(CMSPluginBase):
|
|||
render_template = "datacenterlight/cms/calculator.html"
|
||||
cache = False
|
||||
|
||||
def render(self, context, instance, placeholder):
|
||||
context = super(DCLCalculatorPlugin, self).render(
|
||||
context, instance, placeholder
|
||||
)
|
||||
context['templates'] = VMTemplate.objects.all()
|
||||
return context
|
||||
|
||||
|
||||
@plugin_pool.register_plugin
|
||||
class DCLBannerListPlugin(CMSPluginBase):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue