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): ...@@ -43,7 +43,7 @@ class SubscribeView(CreateView):
) )
self.object.user_agent = self.request.META.get('HTTP_USER_AGENT') self.object.user_agent = self.request.META.get('HTTP_USER_AGENT')
self.object.save() self.object.save()
if not self.object.is_from_bot(): if not self.object.is_from_bot() and getattr(settings, 'NEWSLETTER_SEND_CONFIRMATION', True):
self.object.send_confirmation_email() self.object.send_confirmation_email()
return resp 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