code: def actions(obj, **kwargs):
      
      if 'exclude' in kwargs:
          kwargs['exclude'] = kwargs['exclude'].split(',')
      actions = obj.get_actions(**kwargs)
      if isinstance(actions, dict):
          actions = actions.values()
      buttons = "".join("%s" % action.render() for action in actions)
      return '<div class="actions">%s</div>' % buttons
docs: Return actions available for an object