forked from CGM_Public/pretix_original
* Change event currency to a choice attribute * Added pycountry to requirements for currency list * Fixed issues from flake8 * Added tests for event currency and added pycountry to setup.py * Removed whitespace from test/control/test_events.py
This commit is contained in:
committed by
Raphael Michel
parent
2e9d95b96a
commit
4accbef6a9
@@ -1,6 +1,7 @@
|
||||
import configparser
|
||||
import os
|
||||
import sys
|
||||
from pycountry import currencies
|
||||
|
||||
import django.conf.locale
|
||||
from django.contrib.messages import constants as messages # NOQA
|
||||
@@ -85,6 +86,7 @@ PRETIX_PLUGINS_DEFAULT = config.get('pretix', 'plugins_default',
|
||||
fallback='pretix.plugins.sendmail,pretix.plugins.statistics')
|
||||
|
||||
DEFAULT_CURRENCY = config.get('pretix', 'currency', fallback='EUR')
|
||||
CURRENCIES = list(currencies)
|
||||
|
||||
ALLOWED_HOSTS = ['*']
|
||||
|
||||
|
||||
Reference in New Issue
Block a user