diff --git a/iaso/models/entity.py b/iaso/models/entity.py index 3bfa57e9dd..f9c6a73b12 100644 --- a/iaso/models/entity.py +++ b/iaso/models/entity.py @@ -112,6 +112,8 @@ def filter_for_mobile_entity(self, limit_date=None, json_content=None): ).exclude(file=""), ) + self = self.filter(attributes_id__isnull=False) + self = self.prefetch_related(p).prefetch_related("instances__form") return self