diff --git a/InvenTree/part/models.py b/InvenTree/part/models.py index c5da47b33e..26dd04ac52 100644 --- a/InvenTree/part/models.py +++ b/InvenTree/part/models.py @@ -1080,12 +1080,7 @@ class Part(MPTTModel): """ - n = self.attachments.count() - - if self.variant_of: - n += self.variant_of.attachments.count() - - return n + return self.part_attachments.count() @property def part_attachments(self):