From 8b9049add9a76ed1a780766cdc2d3e9b7f2f405e Mon Sep 17 00:00:00 2001 From: Pavel 'LEdoian' Turinsky Date: Thu, 21 Nov 2019 18:37:53 +0100 Subject: [PATCH] =?UTF-8?q?Testdata:=20nenastavovat=20ro=C4=8Dn=C3=ADk?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- seminar/testutils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/seminar/testutils.py b/seminar/testutils.py index 1e853d72..204c0ea6 100644 --- a/seminar/testutils.py +++ b/seminar/testutils.py @@ -600,5 +600,5 @@ def create_test_data(size = 6, rnd = None): # obecné nastavení semináře, musí být už přidané ročníky a čísla, jinak se nastaví divně - nastaveni = Nastaveni.objects.create(aktualni_rocnik = Rocnik.objects.last(), + nastaveni = Nastaveni.objects.create( aktualni_cislo = Cislo.objects.all()[1])