title: how to get cart total amount in Django?
body: <p>I have deals products and normal products. I have a function for normal products which calculate grand toal is working fine but when I add deal product in the cart it did calculate the grand total but only normal prices not deals prices</p>
  <p>get total of one product with quantity</p>
  <pre><code>    def get_total(self):
          price = self.product.price
          quantity = self.quantity
          total = price*quantity
          print(total)
  
          return total
  </code></pre>
  <p>function of get cart total</p>
  <pre><code>@property
      def get_cart_total(self):
          orderitem = self.orderitem_set.all()
          total = sum(item.get_total for item in orderitem)
          return total
  </code></pre>
  <p>i have two fields in databse</p>
  <p><code>price</code> and  <code>deal_price</code></p>
  <p>how i can calculate complete correct cart total?</p>