From 7ae36a11a7acd6f48ccf02d61019b38ca4df71ff Mon Sep 17 00:00:00 2001 From: Mee Date: Thu, 16 May 2019 22:24:39 +0200 Subject: [PATCH] =?UTF-8?q?Fix=20migrace=20=C5=99e=C5=A1itele=20na=20Osobu?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- seminar/migrations/0051_resitel_to_osoba.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/seminar/migrations/0051_resitel_to_osoba.py b/seminar/migrations/0051_resitel_to_osoba.py index fc7d45fc..1bf6f574 100644 --- a/seminar/migrations/0051_resitel_to_osoba.py +++ b/seminar/migrations/0051_resitel_to_osoba.py @@ -7,7 +7,7 @@ from django.db import migrations def resitel_to_osoba(apps,schema_editor): Resitel = apps.get_model('seminar','Resitel') Osoba = apps.get_model('seminar','Osoba') - for r in Resitel.object.all(): + for r in Resitel.objects.all(): o = Osoba() o.datum_narozeni = r.datum_narozeni o.datum_registrace = r.datum_prihlaseni @@ -35,5 +35,5 @@ class Migration(migrations.Migration): ] operations = [ - + migrations.RunPython(resitel_to_osoba), ]