code: def query_pager_by_slug(kind, current_page_num=1):
          '''
          Query pager
          '''
          return TabPost.select().where(TabPost.kind == kind).order_by(
              TabPost.time_create.desc()
          ).paginate(
              current_page_num, CMS_CFG['list_num']
          f query_pager_by_slug(kind, current_page_num=1):
          '''
          Query pager
          '''
          return TabPost.select().where(TabPost.kind == kind).order_by(
              TabPost.time_create.desc()
          ).paginate(
              current_page_num, CMS_CFG['list_num']
          )
docs: Query pager