Commits

Ian George  committed 3a52e7b

Oops, forgoet get_or_create returns a tuple. This code really needs some tests

  • Participants
  • Parent commits c8e034c

Comments (0)

Files changed (1)

File quiet/shop/models/order.py

         
     debug("payment", "Order:%s" % ordr)
 
-    op = OrderPayment.objects.get_or_create(order=ordr, reference=kwargs['reference'], source=kwargs['source'], amount=kwargs['amount'])
+    op, created = OrderPayment.objects.get_or_create(order=ordr, reference=kwargs['reference'], source=kwargs['source'], amount=kwargs['amount'])
     op.save()
 
     if ordr.status.count() == 0: