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
083fe8df
Commit
083fe8df
authored
Nov 23, 2020
by
fred
Browse files
remove hardcoded debug mode
parent
f8f49323
Changes
1
Hide whitespace changes
Inline
Side-by-side
newsletter/models.py
View file @
083fe8df
...
...
@@ -88,10 +88,7 @@ class Newsletter(models.Model):
msg
=
MIMEMultipart
(
'alternative'
)
msg
[
'Subject'
]
=
self
.
subject
msg
[
'From'
]
=
settings
.
NEWSLETTER_SENDER
if
settings
.
DEBUG
:
msg
[
'To'
]
=
'fred@localhost'
else
:
msg
[
'To'
]
=
'%s@%s'
%
(
settings
.
NEWSLETTER_NAME
,
settings
.
NEWSLETTER_DOMAIN
)
msg
[
'To'
]
=
'%s@%s'
%
(
settings
.
NEWSLETTER_NAME
,
settings
.
NEWSLETTER_DOMAIN
)
h2t
=
html2text
.
HTML2Text
()
h2t
.
unicode_snob
=
True
...
...
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