def get_tags(model, trigger_id):
    """
    get the tags if any
    :param model: the model object to request
    :param trigger_id: the id of the related trigger
    :return: tags string
    """
    # get the data of this trigger
    trigger = model.objects.get(trigger_id=trigger_id)

    tags = ''
    if trigger.tag:
        # is there several tag ?
        tags = ["#" + tag.strip() for tag in trigger.tag.split(',')]
        tags = str(','.join(tags)) if isinstance(tags, list) else tags
        tags = ' ' + tags
    return tags