NEW: do mailu s odvolanim souhlasu pridan odkaz na profil

This commit is contained in:
Jarmil 2019-12-16 15:17:14 +01:00
parent cb441872ec
commit b9eac30329
1 changed files with 6 additions and 1 deletions

View File

@ -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()