NEW: do mailu s odvolanim souhlasu pridan odkaz na profil
This commit is contained in:
parent
cb441872ec
commit
b9eac30329
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue