diff --git a/apps/assets/models/node.py b/apps/assets/models/node.py index 8876fc2f1..c157d9d58 100644 --- a/apps/assets/models/node.py +++ b/apps/assets/models/node.py @@ -121,7 +121,7 @@ class Node(OrgModelMixin): def get_assets(self): from .asset import Asset if self.is_default_node(): - assets = Asset.objects.filter(nodes__isnull=True) + assets = Asset.objects.filter(Q(nodes__id=self.id) | Q(nodes__isnull=True)) else: assets = Asset.objects.filter(nodes__id=self.id) return assets