def get_page_context(self):
"""
Return current page context
"""
try:
records = Record\
.select()\
.where(Record.active == True)\
.paginate(1, paginate_by=env.SITEMAP_PER_PAGE)
except peewee.IntegrityError:
records = []
return dict(records=records)
评论列表
文章目录