@register.simple_tag(takes_context=True)
def child_actions(context):
 content = []
 for child_action in context[u'menu_action'][u'child_actions']:
  try:
   content.append(child_action.render(context))
  except Exception:
   logging.exception(u'Error rendering child action %s', child_action.action_id)
 return u''.join(content)

@ register . simple_tag ( takes_context = True ) def child_actions ( context ) : content = [ ] for child_action in context [ u'menu_action' ] [ u'child_actions' ] : try : content . append ( child_action . render ( context ) ) except Exception : logging . exception ( u'Error rendering child action %s' , child_action . action_id ) return u'' . join ( content )
render all registered child actions .