seminar | sirotcinec | lepsi detekce sirotku

This commit is contained in:
Tomas 'Jethro' Pokorny 2020-06-03 23:54:59 +02:00
parent c2483289fe
commit 548852c83c

View file

@ -226,7 +226,7 @@ class SirotcinecView(generic.ListView):
template_name = 'seminar/orphanage.html' template_name = 'seminar/orphanage.html'
def get_queryset(self): def get_queryset(self):
return s.TreeNode.objects.not_instance_of(s.RocnikNode).filter(root=None) return s.TreeNode.objects.not_instance_of(s.RocnikNode).filter(root=None,succ=None,father_of_first=None)
class ProblemView(generic.DetailView): class ProblemView(generic.DetailView):
model = s.Problem model = s.Problem