summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas NOEL <tnoel@entrouvert.com>2017-12-13 16:15:49 (GMT)
committerThomas NOEL <tnoel@entrouvert.com>2017-12-13 16:15:49 (GMT)
commit2b4eb7cd54c92aac71bd51efdbff05011c8ada83 (patch)
treedd02819a7eed06876f8ef4c663c0af8849627c33
parent689010e524c972a04ea79667035601dc32ac6af2 (diff)
downloadwelco-0.56.zip
welco-0.56.tar.gz
welco-0.56.tar.bz2
contacts: add a settings for send_registration_mail (#20665)v0.56
-rw-r--r--welco/contacts/views.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/welco/contacts/views.py b/welco/contacts/views.py
index edec7b1..aaa6482 100644
--- a/welco/contacts/views.py
+++ b/welco/contacts/views.py
@@ -131,7 +131,7 @@ class ContactAdd(FormView):
msg[field_key] = form[field_key].value()
msg['password'] = str(random.SystemRandom().random())
- msg['send_registration_email'] = True
+ msg['send_registration_email'] = getattr(settings, 'CONTACT_SEND_REGISTRATION_EMAIL', True)
authentic_site = settings.KNOWN_SERVICES.get('authentic').values()[0]
authentic_url = authentic_site.get('url')