Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
itminedu
synnefo
Commits
e4a6a01b
Commit
e4a6a01b
authored
Jul 09, 2013
by
Ilias Tsitsimpis
Committed by
Christos Stavrakakis
Sep 24, 2013
Browse files
wheezy: mail_admins method in Django has changed
An extra parameter (html_message) has been added.
parent
217ac595
Changes
1
Hide whitespace changes
Inline
Side-by-side
snf-webproject/synnefo/webproject/middleware/cleanse.py
View file @
e4a6a01b
...
...
@@ -42,7 +42,8 @@ import re
HIDDEN_ALL
=
settings
.
HIDDEN_COOKIES
+
settings
.
HIDDEN_HEADERS
def
mail_admins_safe
(
subject
,
message
,
fail_silently
=
False
,
connection
=
None
):
def
mail_admins_safe
(
subject
,
message
,
fail_silently
=
False
,
connection
=
None
,
html_message
=
None
):
'''
Wrapper function to cleanse email body from sensitive content before
sending it
...
...
Write
Preview
Markdown
is supported
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