mirror of
https://github.com/pretix/pretix.git
synced 2026-09-14 16:24:43 +00:00
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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user