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