The get_cleanquantity* methods on the product model use the locale.atof method in order to clean up the incoming quantity. However, float fields are stored in PostgreSQL as "1.0" regardless of the locale settings on the server. So if you pass in "1.0" to the get_clean_quantity_value() method (from a Django model such as CartItem.amount), it will return "10.0" if you are using a European locale.
Here is a screen shot to make it easier to understand:
The get_cleanquantity* methods on the product model use the locale.atof method in order to clean up the incoming quantity. However, float fields are stored in PostgreSQL as "1.0" regardless of the locale settings on the server. So if you pass in "1.0" to the get_clean_quantity_value() method (from a Django model such as CartItem.amount), it will return "10.0" if you are using a European locale.
Here is a screen shot to make it easier to understand:
http://screencast.com/t/kPDzLBxxO11