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
0e17d1ad
Commit
0e17d1ad
authored
Mar 01, 2012
by
Sofia Papagiannaki
Browse files
not send admin notification email if ASTAKOS_DEFAULT_ADMIN_EMAIL is not set
Refs: #2116
parent
f0c894d1
Changes
1
Hide whitespace changes
Inline
Side-by-side
snf-astakos-app/astakos/im/backends.py
View file @
0e17d1ad
...
...
@@ -269,6 +269,8 @@ def _send_verification(request, user, template_name):
logger
.
info
(
'Sent activation %s'
,
user
)
def
_send_notification
(
user
,
template_name
):
if
not
DEFAULT_ADMIN_EMAIL
:
return
message
=
render_to_string
(
template_name
,
{
'user'
:
user
,
'baseurl'
:
BASEURL
,
...
...
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