Merge branch 'demo2' into demo
This commit is contained in:
commit
afb3fc28c8
|
@ -183,7 +183,7 @@ def sendRegisterTokenReg(rt):
|
|||
word_days = "dní"
|
||||
if appSettings.TOKEN_VALID_SEC < 60*60*24*5:
|
||||
word_days = "dny"
|
||||
if appSettings.TOKEN_VALID_SEC < 60*60*24*1:
|
||||
if appSettings.TOKEN_VALID_SEC <= 60*60*24*1:
|
||||
word_days = "den"
|
||||
|
||||
emailSubj = 'Piráti - nalodění - registrační odkaz'
|
||||
|
|
|
@ -509,7 +509,7 @@ def profil(request):
|
|||
messages.info(request, "Odvolal/a jste souhlas se zpracováním osobních údajů.")
|
||||
send_mail(
|
||||
"Nalodeni: %s odvolal souhlas se zpracovanim osobnich udaju" % request.user.email,
|
||||
"Stalo se tak {approxdate}".format(approxdate=datetime.now()),
|
||||
"Stalo se tak {mydate}".format(mydate=request.user.dc_undo_stamp),
|
||||
"nalodeni@pirati.cz", [appSettings.EMAIL_RECIPIENT_GDPR],
|
||||
)
|
||||
return save_and_redirect('/ja-pirat/profil/')
|
||||
|
|
Loading…
Reference in New Issue