コード例 #1
0
ファイル: article_libs.py プロジェクト: cyc41247293/OA-System
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
コード例 #2
0
def get_article_lib(self):
    articles = Article.all_createtime_desc()
    categorys = Category.all()
    tags = Tag.all()
    return articles, categorys, tags
コード例 #3
0
def get_article_lib(self):
    articles = Article.all_createtime_desc()
    categorys, tags = get_tags_categorys(self)
    return articles, categorys, tags