Commit 64bd2184 authored by Samuel GAIST's avatar Samuel GAIST Committed by Flavio TARSETTI
Browse files

[attestations][commands][send_attestation_cleanup_warning] Create attestation link in code

parent 745eee27
......@@ -66,6 +66,11 @@ class Command(BaseCommand):
% attestation.experiment.fullname()
)
attestation_link = (
f"https://{current_site.domain}"
+ attestation.get_absolute_url()
)
send_mail(
subject,
render_to_string(
......@@ -73,7 +78,7 @@ class Command(BaseCommand):
{
"attestation": attestation,
"beat_version": __version__,
"site": current_site,
"attestation_link": attestation_link,
},
),
settings.DEFAULT_FROM_EMAIL,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment