Add tag's parents to the jsonify.

This commit is contained in:
voussoir 2021-01-07 23:05:54 -08:00
parent 49f3f7a208
commit a4e5933f39

View file

@ -1553,6 +1553,7 @@ class Tag(ObjectBase, GroupableMixin):
if not minimal: if not minimal:
j['author'] = self.get_author().jsonify() if self.author_id else None j['author'] = self.get_author().jsonify() if self.author_id else None
j['description'] = self.description j['description'] = self.description
j['parents'] = [parent.jsonify(minimal=True) for parent in self.get_parents()]
j['children'] = [child.jsonify(minimal=True) for child in self.get_children()] j['children'] = [child.jsonify(minimal=True) for child in self.get_children()]
if include_synonyms: if include_synonyms: