def get(self, tag_id=None): if not tag_id: return Tag.query.all() # return tag.blogs.all() return Tag.tag_blogs(tag_id)