def is_active(self):
        if self.is_variant():
            return self.active and self.parent.active
        else:
            return self.active
Returns the activity state of the product.
dataset/ETHPy150Open diefenbach/django-lfs/lfs/catalog/models.py/Product.is_active