misc: always use ajax for blurp cells declared as ajax (#9094)

This commit is contained in:
Frédéric Péters 2015-11-23 20:14:38 +01:00
parent 382ee37f12
commit 5d9cdb777f
1 changed files with 2 additions and 0 deletions

View File

@ -459,6 +459,8 @@ class BlurpCell(CellBase):
self.blurp_key = variant
def render(self, context):
if settings.CMS_PLUGIN_BLURP_RENDERERS[self.blurp_key].get('ajax') and not context.get('synchronous'):
raise NothingInCacheException()
renderer = cmsplugin_blurp.utils.resolve_renderer(self.blurp_key)
template = renderer.render_template()
context = renderer.render(context)