|
@ -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 |
|
|