def get_cheapest_variant(self, request):
        cheapest_variant = None
        min_price = None
        for variant in Product.objects.filter(parent=self):
            price = variant.get_price_gross(request)
            if price == 0:
                continue
            if (min_price is None) or (price < min_price):
                cheapest_variant = variant
                min_price = price

        return cheapest_variant
Returns the cheapest variant by gross price.
dataset/ETHPy150Open diefenbach/django-lfs/lfs/catalog/models.py/Product.get_cheapest_variant