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
beat
beat.web
Commits
56c43fbf
Commit
56c43fbf
authored
Sep 23, 2020
by
Samuel GAIST
Browse files
[reports][commands][send_report_cleanup_warning_and_cleanup] Create attestation link in code
parent
1260bd49
Changes
1
Hide whitespace changes
Inline
Side-by-side
beat/web/reports/management/commands/send_report_cleanup_warning_and_cleanup.py
View file @
56c43fbf
...
...
@@ -63,6 +63,9 @@ class Command(BaseCommand):
template_path
=
"reports/report_about_to_expire_email.txt"
for
report
in
reports_about_to_expire
:
subject
=
"Report %s is about to expire"
%
report
.
name
report_link
=
(
f
"https://
{
current_site
.
domain
}
"
+
report
.
get_absolute_url
()
)
send_mail
(
subject
,
...
...
@@ -71,7 +74,7 @@ class Command(BaseCommand):
{
"report"
:
report
,
"beat_version"
:
__version__
,
"
site"
:
current_site
,
"
report_link"
:
report_link
,
},
),
settings
.
DEFAULT_FROM_EMAIL
,
...
...
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