Skip to content

Commit

Permalink
Check if entity attributes_id is not null (safer)
Browse files Browse the repository at this point in the history
  • Loading branch information
bramj authored and madewulf committed May 22, 2024
1 parent 9e56d0d commit b54a5b9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions iaso/models/entity.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b54a5b9

Please sign in to comment.