|
|
@ -63,20 +63,6 @@ from seminar.utils import aktivniResitele, resi_v_rocniku |
|
|
|
def get_problemy_k_tematu(tema): |
|
|
|
return Problem.objects.filter(nadproblem = tema) |
|
|
|
|
|
|
|
|
|
|
|
class VlozBodyView(generic.ListView): |
|
|
|
template_name = 'seminar/org/vloz_body.html' |
|
|
|
|
|
|
|
def get_queryset(self): |
|
|
|
self.tema = get_object_or_404(Problem,id=self.kwargs['tema']) |
|
|
|
print(self.tema) |
|
|
|
self.problemy = Problem.objects.filter(nadproblem = self.tema) |
|
|
|
print(self.problemy) |
|
|
|
self.reseni = Reseni.objects.filter(problem__in=self.problemy) |
|
|
|
print(self.reseni) |
|
|
|
return self.reseni |
|
|
|
|
|
|
|
|
|
|
|
class ObalkovaniView(generic.ListView): |
|
|
|
template_name = 'seminar/org/obalkovani.html' |
|
|
|
|
|
|
|