Add tag's parents to the jsonify.
This commit is contained in:
parent
49f3f7a208
commit
a4e5933f39
1 changed files with 1 additions and 0 deletions
|
@ -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:
|
||||||
|
|
Loading…
Reference in a new issue