Clear all session variables before loading DCLCalculatorPlugin
This commit is contained in:
parent
5d9b2ee41a
commit
806726614e
1 changed files with 2 additions and 0 deletions
|
@ -9,6 +9,7 @@ from .cms_models import (
|
|||
DCLSectionPromoPluginModel, DCLCalculatorPluginModel
|
||||
)
|
||||
from .models import VMTemplate
|
||||
from datacenterlight.utils import clear_all_session_vars
|
||||
|
||||
|
||||
@plugin_pool.register_plugin
|
||||
|
@ -85,6 +86,7 @@ class DCLCalculatorPlugin(CMSPluginBase):
|
|||
require_parent = True
|
||||
|
||||
def render(self, context, instance, placeholder):
|
||||
clear_all_session_vars(context['request'])
|
||||
context = super(DCLCalculatorPlugin, self).render(
|
||||
context, instance, placeholder
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue