Do not allow currency codes that to not represent money (#4056)

* Do not allow currency codes that to not represent money

* Rebase migration

* Fix blacklist
This commit is contained in:
Raphael Michel
2024-04-22 16:22:30 +02:00
committed by GitHub
parent 79d59553d7
commit 0f696f42f6
5 changed files with 45 additions and 1 deletions
+6 -1
View File
@@ -235,7 +235,12 @@ COMPRESS_FILTERS = {
)
}
CURRENCIES = list(currencies)
CURRENCIES = [
c for c in currencies
if c.alpha_3 not in {
'XAG', 'XAU', 'XBA', 'XBB', 'XBC', 'XBD', 'XDR', 'XPD', 'XPT', 'XSU', 'XTS', 'XUA',
}
]
CURRENCY_PLACES = {
# default is 2
'BIF': 0,