Ejemplo n.º 1
0
def article_list_lib(self):
    articles = Article.all_createtime_desc()
    comments = Comment.all_createtime_desc()
    tags, categorys = get_tags_categorys_lib(self)

    return articles, comments, categorys, tags
Ejemplo n.º 2
0
def get_article_lib(self):
    articles = Article.all_createtime_desc()
    categorys = Category.all()
    tags = Tag.all()
    return articles, categorys, tags
Ejemplo n.º 3
0
def get_article_lib(self):
    articles = Article.all_createtime_desc()
    categorys, tags = get_tags_categorys(self)
    return articles, categorys, tags