diff --git a/seminar/urls.py b/seminar/urls.py index e60b91e0..aa125f02 100644 --- a/seminar/urls.py +++ b/seminar/urls.py @@ -123,11 +123,6 @@ urlpatterns = [ org_required(views.soustredeniObalkyView), name='seminar_soustredeni_obalky' ), - path( - 'org/vloz_body//', - org_required(views.VlozBodyView.as_view()), - name='seminar_org_vlozbody' - ), # příprava na nestatický orgorozcestník path( 'org/rozcestnik/', diff --git a/seminar/views/views_all.py b/seminar/views/views_all.py index ecbe82fa..dfee39e2 100644 --- a/seminar/views/views_all.py +++ b/seminar/views/views_all.py @@ -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'