Skip to content

Commit

Permalink
Fix error message for currency mismatch
Browse files Browse the repository at this point in the history
Currency of the basket and line were swapped leading to confusing error
message.
  • Loading branch information
izidormatusov committed Nov 18, 2013
1 parent 4cf60e1 commit fc6b5e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion oscar/apps/basket/abstract_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit fc6b5e2

Please sign in to comment.