Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
djangoldp-notification
Manage
Activity
Members
Labels
Plan
Issues
14
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
djangoldp-packages
djangoldp-notification
Merge requests
!18
WIP: minor: send mails with delayed-mail of sib-manager
Code
Review changes
Check out branch
Download
Patches
Plain diff
Closed
WIP: minor: send mails with delayed-mail of sib-manager
delayed-mails
into
master
Overview
0
Commits
2
Pipelines
1
Changes
1
Closed
Jean-Baptiste Pasquier
requested to merge
delayed-mails
into
master
5 years ago
Overview
0
Commits
2
Pipelines
1
Changes
1
Expand
In need of
https://git.happy-dev.fr/startinblox/devops/sib/merge_requests/25
0
0
Merge request reports
Compare
master
master (base)
and
latest version
latest version
6da4eef9
2 commits,
5 years ago
1 file
+
5
−
6
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
djangoldp_notification/models.py
+
5
−
6
Options
@@ -5,7 +5,7 @@ import requests
from
django.conf
import
settings
from
django.contrib.admin.models
import
LogEntry
from
django.contrib.sessions.models
import
Session
from
django.core.mail
import
send_
mail
from
post_office
import
mail
from
django.db
import
models
from
django.db.models.signals
import
post_save
from
django.dispatch
import
receiver
@@ -95,12 +95,11 @@ def send_email_on_notification(sender, instance, created, **kwargs):
'
object
'
:
where
}
)
send_mail
(
'
Notification on
'
+
settings
.
JABBER_DEFAULT_HOST
,
instance
.
summary
,
mail
.
send
(
instance
.
user
.
email
,
settings
.
EMAIL_HOST_USER
or
"
noreply@
"
+
settings
.
JABBER_DEFAULT_HOST
,
[
instance
.
user
.
email
]
,
fail_silently
=
True
,
subject
=
'
Notification on
'
+
settings
.
JABBER_DEFAULT_HOST
,
message
=
instance
.
summary
,
html_message
=
html_message
)
except
:
Loading