Fix user threshold setting

This commit is contained in:
Gabriel Augendre 2019-03-04 18:45:35 +01:00
parent 07f9e2f0e2
commit 0d72d23fa8

View file

@ -160,6 +160,6 @@ CRISPY_TEMPLATE_PACK = 'bootstrap4'
LOGOUT_REDIRECT_URL = '/' LOGOUT_REDIRECT_URL = '/'
LOGIN_REDIRECT_URL = '/' LOGIN_REDIRECT_URL = '/'
USER_THRESHOLD = os.getenv('USER_THRESHOLD', 10) USER_THRESHOLD = int(os.getenv('USER_THRESHOLD', 10))
django_heroku.settings(locals(), allowed_hosts=False, databases=DJANGO_ENV == 'prod') django_heroku.settings(locals(), allowed_hosts=False, databases=DJANGO_ENV == 'prod')