From b9eac30329d8a94589ff1ddeecbccf4e8021fb29 Mon Sep 17 00:00:00 2001 From: Jarmil Date: Mon, 16 Dec 2019 15:17:14 +0100 Subject: [PATCH] NEW: do mailu s odvolanim souhlasu pridan odkaz na profil --- nalodeni/views.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/nalodeni/views.py b/nalodeni/views.py index 02de9b4..0f6f5d7 100644 --- a/nalodeni/views.py +++ b/nalodeni/views.py @@ -573,7 +573,12 @@ def souhlas(request): messages.info(request, "Odvolal/a jste souhlas se zpracováním osobních údajů.") nalodeni_auth.send_mail_safe( "Nalodeni: %s odvolal souhlas se zpracovanim osobnich udaju" % request.user.email, - "Stalo se tak {mydate}".format(mydate=request.user.dc_undo_stamp), + """ +Datum události: {mydate} +Profil dotyčné/ho: {base_url}/person/{person_id}/ + """.format(mydate=request.user.dc_undo_stamp, + base_url=appSettings.BASE_URL, + person_id=request.user.id), "nalodeni@pirati.cz", [appSettings.EMAIL_RECIPIENT_GDPR] ) request.user.save()