From f255d1512db158f64208f0eb20eeeaafa4f3126f Mon Sep 17 00:00:00 2001 From: "Pavel \"LEdoian\" Turinsky" Date: Tue, 27 Apr 2021 22:34:08 +0200 Subject: [PATCH] Fix --- seminar/migrations/0052_user_to_organizator.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/seminar/migrations/0052_user_to_organizator.py b/seminar/migrations/0052_user_to_organizator.py index 8d689a8c..ee844d1d 100644 --- a/seminar/migrations/0052_user_to_organizator.py +++ b/seminar/migrations/0052_user_to_organizator.py @@ -57,8 +57,8 @@ def spoj_k_organizatorum_osoby(apps, scema_editor): osoba.jmeno = user.first_name osoba.prijmeni = user.last_name osoba.email = user.email - user.jmeno += " (Uživatel!)" - user.prijmeni += " (Uživatel!)" + user.first_name += " (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) user.save()