def get_by_slug(tag_slug):
        '''
        Get label by slug.
        '''
        label_recs = TabTag.select().where(TabTag.slug == tag_slug)
        return label_recs.get() if label_recs else False
def get_by_slug ( tag_slug ) : label_recs = TabTag . select ( ) . where ( TabTag . slug == tag_slug ) return label_recs . get ( ) if label_recs else False
Get label by slug.