mirror of https://github.com/veops/cmdb.git
fix(api): ci relation search
This commit is contained in:
parent
52b0a41d16
commit
9a2229ab10
|
@ -64,7 +64,7 @@ class Search(object):
|
||||||
|
|
||||||
self.ancestor_ids = ancestor_ids
|
self.ancestor_ids = ancestor_ids
|
||||||
self.descendant_ids = descendant_ids
|
self.descendant_ids = descendant_ids
|
||||||
self.root_parent_path = root_parent_path
|
self.root_parent_path = root_parent_path or []
|
||||||
self.has_m2m = has_m2m or False
|
self.has_m2m = has_m2m or False
|
||||||
if not self.has_m2m:
|
if not self.has_m2m:
|
||||||
if self.ancestor_ids:
|
if self.ancestor_ids:
|
||||||
|
|
Loading…
Reference in New Issue