misc: always set render_skeleton template variable (#29151)

This commit is contained in:
Frédéric Péters 2018-12-17 23:27:26 +01:00
parent 30fe6dcfa6
commit 51cb703350
1 changed files with 2 additions and 0 deletions

View File

@ -45,6 +45,8 @@ def skeleton_text(context, placeholder_name, content=''):
@register.inclusion_tag('combo/placeholder.html', takes_context=True)
def placeholder(context, placeholder_name, **options):
placeholder = Placeholder(key=placeholder_name, cell=context.get('cell'), **options)
# make sure render_skeleton is available in context
context['render_skeleton'] = context.get('render_skeleton')
if context.get('placeholder_search_mode'):
if placeholder.name:
# only include placeholders with a name