(article)
return {
        'article_tags_list': tags_list
    }
文章标签
    :param article:
    :return:
文章标签
    :param article:
    :return:
文章标签 : param article : : return :
def load_articletags(article):
    """
    文章标签
    :param article:
    :return:
    """
    tags = article.tags.all()
    tags_list = []
    for tag in tags:
        url = tag.get_absolute_url()
        count = tag.get_article_count()
        tags_list.append((
            url, count, tag, random.choice(settings.BOOTSTRAP_COLOR_TYPES)
        ))
    return {
        'article_tags_list': tags_list
    }
def load_articletags ( article ) : tags = article . tags . all ( ) tags_list = [ ] for tag in tags : url = tag . get_absolute_url ( ) count = tag . get_article_count ( ) tags_list . append ( ( url , count , tag , random . choice ( settings . BOOTSTRAP_COLOR_TYPES ) ) ) return { 'article_tags_list' : tags_list }