From 6706bebdb74689797eb178acd49a359dc1fcf6cd Mon Sep 17 00:00:00 2001 From: "Tomas \"Jethro\" Pokorny" Date: Fri, 17 May 2019 01:07:06 +0200 Subject: [PATCH] Osobu je potreba ulozit, nez se da priradit. --- seminar/migrations/0052_user_to_organizator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/seminar/migrations/0052_user_to_organizator.py b/seminar/migrations/0052_user_to_organizator.py index 4ebcd1d0..996eb21d 100644 --- a/seminar/migrations/0052_user_to_organizator.py +++ b/seminar/migrations/0052_user_to_organizator.py @@ -17,7 +17,6 @@ def spoj_k_organizatorum_osoby(apps, scema_editor): osoba = resitele.first().osoba else: osoba = Osoba(user=user) - org.osoba = osoba # Přesun informací z organizátora do jeho osoby osoba.prezdivka = org.prezdivka if org.prezdivka is not None else '' @@ -25,6 +24,7 @@ def spoj_k_organizatorum_osoby(apps, scema_editor): # Všechno uložit osoba.save() + org.osoba = osoba org.save() def fix_problem(apps, schema_editor):