def get_unit(self):
        if self.is_variant():
            return self.parent.unit
        else:
            return self.unit
Returns the unit of the product. Takes care whether the product is a
dataset/ETHPy150Open diefenbach/django-lfs/lfs/catalog/models.py/Product.get_unit