code: def price_range(self):
          
          ordered = self.variants.order_by('base_price')
          if ordered:
              return ordered.first().price, ordered.last().price
          else:
              return None, None
docs: Calculate the price range of the products variants