def get_variant_properties_for_parent(self):
        from lfs.caching.utils import get_cache_group_id
        pid = self.get_parent().pk
        properties_version = get_cache_group_id('global-properties-version')
        group_id = '%s-%s' % (properties_version, get_cache_group_id('properties-%s' % pid))
        cache_key = "%s-variant-properties-for-parent-%s-%s" % (settings.CACHE_MIDDLEWARE_KEY_PREFIX, group_id, self.id)

        properties = cache.get(cache_key)
        if properties:
            return properties

        properties = self.parent.get_all_properties(variant=self)
        cache.set(cache_key, properties)

        return properties
Returns the property value of a variant in the correct ordering of the
dataset/ETHPy150Open diefenbach/django-lfs/lfs/catalog/models.py/Product.get_variant_properties_for_parent