From 2b4eb7cd54c92aac71bd51efdbff05011c8ada83 Mon Sep 17 00:00:00 2001 From: Thomas NOEL Date: Wed, 13 Dec 2017 17:15:49 +0100 Subject: [PATCH] contacts: add a settings for send_registration_mail (#20665) --- welco/contacts/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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') -- 2.15.1