From 6e06f772391af28e6d81d02f8f24a5e840d03809 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jon=C3=A1=C5=A1=20Havelka?= Date: Wed, 12 Oct 2022 14:29:35 +0200 Subject: [PATCH] =?UTF-8?q?Sakra=20tohle=20tu=20m=C4=9Blo=20z=C5=AFstat?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- seminar/migrations/0104_hodnoceni_deadline_body.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/seminar/migrations/0104_hodnoceni_deadline_body.py b/seminar/migrations/0104_hodnoceni_deadline_body.py index 7a3d7a6e..17eab313 100644 --- a/seminar/migrations/0104_hodnoceni_deadline_body.py +++ b/seminar/migrations/0104_hodnoceni_deadline_body.py @@ -11,7 +11,7 @@ def prirad_deadliny(apps, schema_editor): Deadline = apps.get_model('seminar', 'Deadline') for h in Hodnoceni.objects.all(): - if h.cislo_body is not None and h.cislo_body.rocnik.rocnik < -1: + if h.cislo_body is not None and h.cislo_body.rocnik.rocnik < 26: # Deadline připravený v minulé migraci h.deadline_body = h.cislo_body.deadline_v_cisle.get() h.save()