This commit is contained in:
Pavel "LEdoian" Turinsky 2021-04-27 22:34:08 +02:00
parent 4a4ac62dce
commit f255d1512d

View file

@ -57,8 +57,8 @@ def spoj_k_organizatorum_osoby(apps, scema_editor):
osoba.jmeno = user.first_name osoba.jmeno = user.first_name
osoba.prijmeni = user.last_name osoba.prijmeni = user.last_name
osoba.email = user.email osoba.email = user.email
user.jmeno += " (Uživatel!)" user.first_name += " (Uživatel!)"
user.prijmeni += " (Uživatel!)" user.last_name += " (Uživatel!)"
osoba.datum_registrace = min(osoba.datum_registrace, user.date_joined, key=lambda d: d if d is not None else date.max) osoba.datum_registrace = min(osoba.datum_registrace, user.date_joined, key=lambda d: d if d is not None else date.max)
user.save() user.save()