alignment calculator plugin

This commit is contained in:
Arvind Tiwari 2018-04-25 15:08:28 +05:30
parent 3bf064a017
commit 3b3b73a2ce

View file

@ -41,7 +41,7 @@ class DCLSectionPlugin(CMSPluginBase):
print(child.__dict__)
if child.__class__.__name__ in right_children:
context['children_to_side'].append(child)
elif child.__class__.__name__ == 'CMSPlugin':
elif child.plugin_type == 'DCLCalculatorPlugin':
context['children_calculator'].append(child)
else:
context['children_to_content'].append(child)