Commits

Ian George committed 2117d9d

Clears the order items before adding them

Comments (0)

Files changed (1)

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(