From: Magnus Hagander Date: Mon, 17 Dec 2018 14:11:47 +0000 (+0100) Subject: Migrate skin specific settings into repository X-Git-Tag: FINAL_PY2^0 X-Git-Url: http://git.postgresql.org/gitweb/static/gitweb.js?a=commitdiff_plain;h=08b29e4624fc7b19b846056c69cf14c6c5665ed7;p=pgeu-web.git Migrate skin specific settings into repository --- diff --git a/code/skin_settings.py b/code/skin_settings.py index b8cd807..d07d432 100644 --- a/code/skin_settings.py +++ b/code/skin_settings.py @@ -17,10 +17,20 @@ ENABLE_AUTO_ACCOUNTING = True # Emails DEFAULT_EMAIL = "webmaster@postgresql.eu" +SERVER_EMAIL = "webmaster@postgresql.eu" TREASURER_EMAIL = "treasurer@postgresql.eu" INVOICE_SENDER_EMAIL = "treasurer@postgresql.eu" MEMBERSHIP_SENDER_EMAIL = "webmaster@postgresql.eu" +# Membership +MEMBERSHIP_LENGTH = 2 +MEMBERSHIP_COST = 10 +def MEMBERSHIP_COUNTRY_VALIDATOR(country): + if hasattr(country, 'europecountry'): + return True + return "Membership in PostgreSQL Europe is available to people living in geographical Europe. Exceptions to this may be provided on a case by case basis by the board. Please contact the board via email if you are seeing this message in error." + + # Ugh EU_VAT = True EU_VAT_HOME_COUNTRY = "FR"