def has_attachments(self):
        return len(self.get_attachments()) > 0
Returns True if the product has attachments.
dataset/ETHPy150Open diefenbach/django-lfs/lfs/catalog/models.py/Product.has_attachments