Neaktualizovat datum souhlasu se spamem při úpravě údajů.
This commit is contained in:
parent
e5c80142c5
commit
0c6bae237f
1 changed files with 2 additions and 1 deletions
|
@ -144,7 +144,8 @@ def resitelEditView(request):
|
|||
osoba_edit.datum_narozeni = fcd['datum_narozeni']
|
||||
## Změny v osobě s podmínkami
|
||||
if fcd.get('spam',False):
|
||||
osoba_edit.datum_souhlasu_zasilani = date.today()
|
||||
if not osoba_edit.datum_souhlasu_zasilani:
|
||||
osoba_edit.datum_souhlasu_zasilani = date.today()
|
||||
else:
|
||||
osoba_edit.datum_souhlasu_zasilani = None
|
||||
if fcd.get('stat','') in ('CZ','SK'):
|
||||
|
|
Loading…
Reference in a new issue