Commits

Ian George  committed 2117d9d

Clears the order items before adding them

  • Participants
  • Parent commits d730259

Comments (0)

Files changed (1)

File quiet/shop/models/order.py

         self.subtotal = basket.net_price(False)
         self.total = basket.total_price()
         self.balance = basket.total_price()
+
+        self.items.all().delete()            
     
         for item in basket.products():
             order_item, created = OrderItem.objects.get_or_create(