diff --git a/seminar/views/views_all.py b/seminar/views/views_all.py index bb41e303..1aca98f6 100644 --- a/seminar/views/views_all.py +++ b/seminar/views/views_all.py @@ -990,7 +990,7 @@ def secti_body_za_cislo(cislo, aktivni_resitele, hlavni_problemy=None): hlavni_problemy = hlavni_problemy_cisla(cislo) def ne_clanek_ne_konfera(problem): - return not(isinstance(problem, m.Clanek) or isinstance(problem, m.Konfera)) + return not(isinstance(problem.get_real_instance(), m.Clanek) or isinstance(problem.get_real_instance(), m.Konfera)) temata_a_spol = list(filter(ne_clanek_ne_konfera, hlavni_problemy)) @@ -1075,7 +1075,7 @@ def vysledkovka_cisla(cislo, context=None): i = 0 def ne_clanek_ne_konfera(problem): - return not(isinstance(problem, m.Clanek) or isinstance(problem, m.Konfera)) + return not(isinstance(problem.get_real_instance(), m.Clanek) or isinstance(problem.get_real_instance(), m.Konfera)) temata_a_spol = list(filter(ne_clanek_ne_konfera, hlavni_problemy)) @@ -1108,7 +1108,7 @@ def vysledkovka_cisla(cislo, context=None): # vytahané informace předáváme do kontextu context['cislo'] = cislo context['radky_vysledkovky'] = radky_vysledkovky - context['problemy'] = hlavni_problemy + context['problemy'] = temata_a_spol context['ostatni'] = je_nejake_ostatni #context['v_cisle_zadane'] = TODO #context['resene_problemy'] = resene_problemy