def save(self, *args, **kwargs):
        if self.product.is_variant():
            self.parent_id = self.product.parent.id
        else:
            self.parent_id = self.product.id

        try:
            float(self.value)
        except ValueError:
            pass
        else:
            self.value_as_float = self.value

        super(ProductPropertyValue, self).save(*args, **kwargs)
Returns the JSON content from a response.
dataset/ETHPy150Open diefenbach/django-lfs/lfs/catalog/models.py/ProductPropertyValue.save--crossover with--dataset/ETHPy150Open pyvideo/steve/steve/restapi.py/get_content