def get_static_block(self):
        cache_key = "%s-product-static-block-%s" % (settings.CACHE_MIDDLEWARE_KEY_PREFIX, self.id)
        block = cache.get(cache_key)
        if block is not None:
            return block

        if self.is_variant() and not self.active_static_block:
            block = self.parent.static_block
        else:
            block = self.static_block

        cache.set(cache_key, block)

        return block
Returns the static block of the product. Takes care whether the product
dataset/ETHPy150Open diefenbach/django-lfs/lfs/catalog/models.py/Product.get_static_block