From 34a82fc22fade1d1f87aa1e3d5fa3bd7ed0ef43c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jon=C3=A1=C5=A1=20Havelka?= Date: Sat, 1 Oct 2022 23:08:55 +0200 Subject: [PATCH] =?UTF-8?q?M=C4=9Bl=20jsem=20prost=C4=9B=20zato,=20=C5=BEe?= =?UTF-8?q?=20to=20funguje.=20I=20jsem=20si=20to=20zkou=C5=A1el.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vysledkovky/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vysledkovky/utils.py b/vysledkovky/utils.py index 75539e9e..b570baed 100644 --- a/vysledkovky/utils.py +++ b/vysledkovky/utils.py @@ -37,10 +37,10 @@ def body_resitelu( filtr &= Q(reseni__hodnoceni__deadline_body__cislo=za) if do: - filtr &= Q(reseni__hodnoceni__deadline_body__lte=do) + filtr &= Q(reseni__hodnoceni__deadline_body__deadline__lte=do.deadline) if od: - filtr &= Q(reseni__hodnoceni__deadline_body__gte=od) + filtr &= Q(reseni__hodnoceni__deadline_body__deadline__gte=od.deadline) resiteleQuery = m.Resitel.objects.all()