|
|
@ -59,12 +59,14 @@ class TabulkaOdevzdanychReseniView(ListView): |
|
|
|
problemy = fcd["problemy"] |
|
|
|
reseni_od = fcd["reseni_od"] |
|
|
|
reseni_do = fcd["reseni_do"] |
|
|
|
jen_neobodovane = fcd["neobodovane"] |
|
|
|
else: |
|
|
|
initial = FiltrForm.gen_initial() |
|
|
|
resitele = initial['resitele'] |
|
|
|
problemy = initial['problemy'] |
|
|
|
reseni_od = initial['reseni_od'][0] |
|
|
|
reseni_do = initial['reseni_do'][0] |
|
|
|
jen_neobodovane = initial["neobodovane"] |
|
|
|
|
|
|
|
|
|
|
|
# Filtrujeme! |
|
|
@ -87,6 +89,8 @@ class TabulkaOdevzdanychReseniView(ListView): |
|
|
|
self.problemy = self.problemy.non_polymorphic() |
|
|
|
|
|
|
|
self.reseni = self.reseni.filter(cas_doruceni__date__gte=reseni_od, cas_doruceni__date__lte=reseni_do) |
|
|
|
if jen_neobodovane: |
|
|
|
self.reseni = self.reseni.filter(hodnoceni__body__isnull=True) |
|
|
|
|
|
|
|
def get_queryset(self): |
|
|
|
self.inicializuj_osy_tabulky() |
|
|
|