Ver código fonte

Add default locale for currency

Babel tried to guess it from the LANG environment variable. But that's
not set in all environments, and would lead to an error in those cases.

Fixes #837
master
Maik Hoepfel 12 anos atrás
pai
commit
0de4e4d0d8
1 arquivos alterados com 1 adições e 0 exclusões
  1. 1
    0
      oscar/defaults.py

+ 1
- 0
oscar/defaults.py Ver arquivo

@@ -11,6 +11,7 @@ OSCAR_MAX_BASKET_QUANTITY_THRESHOLD = 10000
11 11
 
12 12
 # Currency
13 13
 OSCAR_DEFAULT_CURRENCY = 'GBP'
14
+OSCAR_CURRENCY_LOCALE = 'en_GB'
14 15
 
15 16
 # Max number of products to keep on the user's history
16 17
 OSCAR_RECENTLY_VIEWED_PRODUCTS = 20

Carregando…
Cancelar
Salvar