From c04eb0eaa71fa7c8b3786ee5bbe66da3f1791478 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jon=C3=A1=C5=A1=20Havelka?= Date: Thu, 13 Oct 2022 17:02:03 +0200 Subject: [PATCH] =?UTF-8?q?Oprava=20reverzn=C3=AD=20migrace=20vracej=C3=AD?= =?UTF-8?q?c=C3=AD=20=C4=8D=C3=ADslu=20verejna=5Fvysledkovka?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- seminar/migrations/0106_remove_cislo_verejna_vysledkovka.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/seminar/migrations/0106_remove_cislo_verejna_vysledkovka.py b/seminar/migrations/0106_remove_cislo_verejna_vysledkovka.py index bdec6c2c..edccf3c9 100644 --- a/seminar/migrations/0106_remove_cislo_verejna_vysledkovka.py +++ b/seminar/migrations/0106_remove_cislo_verejna_vysledkovka.py @@ -8,7 +8,7 @@ def vrat_verejnost(apps, schema_editor): Cislo = apps.get_model('seminar', 'Cislo') for cislo in Cislo.objects.all(): - cislo.verejna_vysledkovka = any(cislo.deadline_v_cisle.filter(typ=Deadline.TYP_CISLA)) + cislo.verejna_vysledkovka = cislo.deadline_v_cisle.filter(typ=Deadline.TYP_CISLA, verejna_vysledkovka=True).exists() cislo.save()