code: def get_by_uid(post_id):
          '''
          Get records by post id.
          '''
          return TabPost2Tag.select(
              TabPost2Tag,
              TabTag.name.alias('tag_name'),
              TabTag.uid.alias('tag_uid')
          ).join(
              TabTag, on=(TabPost2Tag.tag_id == TabTag.uid)
          ).where(
              (TabPost2Tag.post_id == post_id) & (TabTag.kind == 'z')
          f get_by_uid(post_id):
          '''
          Get records by post id.
          '''
          return TabPost2Tag.select(
              TabPost2Tag,
              TabTag.name.alias('tag_name'),
              TabTag.uid.alias('tag_uid')
          ).join(
              TabTag, on=(TabPost2Tag.tag_id == TabTag.uid)
          ).where(
              (TabPost2Tag.post_id == post_id) & (TabTag.kind == 'z')
          )
docs: Get records by post id.