code: def query_pager_by_slug(slug, kind='1', current_page_num=1):
          '''
          Query pager
          '''
          return TabPost.select().join(
              TabPost2Tag, on=(TabPost.uid == TabPost2Tag.post_id)
          ).where(
              (TabPost2Tag.tag_id == slug) &
              (TabPost.kind == kind)
          ).paginate(current_page_num, CMS_CFG['list_num']f query_pager_by_slug(slug, kind='1', current_page_num=1):
          '''
          Query pager
          '''
          return TabPost.select().join(
              TabPost2Tag, on=(TabPost.uid == TabPost2Tag.post_id)
          ).where(
              (TabPost2Tag.tag_id == slug) &
              (TabPost.kind == kind)
          ).paginate(current_page_num, CMS_CFG['list_num'])
docs: Query pager