Commit 8f654c37 authored by BaiJiangJie's avatar BaiJiangJie

[Update] Node get_all_assets 过滤游离资产,条件nodes_key=None -> nodes=None

parent 4ff7a1f0
......@@ -114,7 +114,7 @@ class Node(OrgModelMixin):
args = []
kwargs = {}
if self.is_default_node():
args.append(Q(nodes__key__regex=pattern) | Q(nodes__key=None))
args.append(Q(nodes__key__regex=pattern) | Q(nodes=None))
else:
kwargs['nodes__key__regex'] = pattern
assets = Asset.objects.filter(*args, **kwargs)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment