Commit 04c365c3 authored by fred's avatar fred
Browse files

add settings not to send a confirmation email

parent 904fd2df
......@@ -43,7 +43,7 @@ class SubscribeView(CreateView):
self.object.user_agent = self.request.META.get('HTTP_USER_AGENT')
if not self.object.is_from_bot():
if not self.object.is_from_bot() and getattr(settings, 'NEWSLETTER_SEND_CONFIRMATION', True):
return resp
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment