Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
radiopanik
django-panik-newsletter
Commits
04c365c3
Commit
04c365c3
authored
Jan 16, 2022
by
fred
Browse files
add settings not to send a confirmation email
parent
904fd2df
Changes
1
Hide whitespace changes
Inline
Side-by-side
newsletter/views.py
View file @
04c365c3
...
...
@@ -43,7 +43,7 @@ class SubscribeView(CreateView):
)
self
.
object
.
user_agent
=
self
.
request
.
META
.
get
(
'HTTP_USER_AGENT'
)
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
()
return
resp
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment