Browse Source

Merge branch 'demo2' into demo

master
Jarmil 2 years ago
parent
commit
afb3fc28c8
  1. 2
      nalodeni/auth.py
  2. 2
      nalodeni/views.py

2
nalodeni/auth.py

@ -183,7 +183,7 @@ def sendRegisterTokenReg(rt): @@ -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'

2
nalodeni/views.py

@ -509,7 +509,7 @@ def profil(request): @@ -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…
Cancel
Save