From fc6b5e2187cc987ad6c439b98b6a1b1997a006b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Izidor=20Matu=C5=A1ov?= Date: Mon, 18 Nov 2013 12:11:34 +0000 Subject: [PATCH] Fix error message for currency mismatch Currency of the basket and line were swapped leading to confusing error message. --- oscar/apps/basket/abstract_models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/oscar/apps/basket/abstract_models.py b/oscar/apps/basket/abstract_models.py index 9f339ec75d9..a382b4ab689 100644 --- a/oscar/apps/basket/abstract_models.py +++ b/oscar/apps/basket/abstract_models.py @@ -183,7 +183,7 @@ def add_product(self, product, quantity=1, options=None): raise ValueError(( "Basket lines must all have the same currency. Proposed " "line has currency %s, while basket has currency %s") % ( - price_currency, stock_info.price.currency)) + stock_info.price.currency, price_currency)) # Line reference is used to distinguish between variations of the same # product (eg T-shirts with different personalisations)