Měl jsem prostě zato, že to funguje. I jsem si to zkoušel.
This commit is contained in:
parent
1ed7162cfe
commit
34a82fc22f
1 changed files with 2 additions and 2 deletions
|
@ -37,10 +37,10 @@ def body_resitelu(
|
||||||
filtr &= Q(reseni__hodnoceni__deadline_body__cislo=za)
|
filtr &= Q(reseni__hodnoceni__deadline_body__cislo=za)
|
||||||
|
|
||||||
if do:
|
if do:
|
||||||
filtr &= Q(reseni__hodnoceni__deadline_body__lte=do)
|
filtr &= Q(reseni__hodnoceni__deadline_body__deadline__lte=do.deadline)
|
||||||
|
|
||||||
if od:
|
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()
|
resiteleQuery = m.Resitel.objects.all()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue