def has_related_products(self):
        return len(self.get_related_products()) > 0
Returns True if the product has related products.
dataset/ETHPy150Open diefenbach/django-lfs/lfs/catalog/models.py/Product.has_related_products