def get_price(self):
    if (self.product_type == 'PIZZA'):
        pizza_price = Pizza.objects.get(product_id=self.product, size=self.size).get_price()
        pricing = []
        pricing.append(pizza_price)
        for topping in self.toppings.all():
            pricing.append(topping.price)
        return sum(pricing)
    elif (self.product_type == 'ENTREE'):
        return Entree.objects.get(product_id=self.product, size=self.size).get_price()
    elif (self.product_type == 'SIDE'):
        return Side.objects.get(product_id=self.product, size=self.size).price
def get_price(self):
    if (self.product_type == 'PIZZA'):
        pizza_price = Pizza.objects.get(product_id=self.product, size=self.size).get_price()
        pricing = []
        pricing.append(pizza_price)
        for topping in self.toppings.all():
            pricing.append(topping.price)
        return sum(pricing)
    elif (self.product_type == 'ENTREE'):
        return Entree.objects.get(product_id=self.product, size=self.size).get_price()
    elif (self.product_type == 'SIDE'):
        return Side.objects.get(product_id=self.product, size=self.size).price