Zrušen VložBodyView

Stejně nic moc nedělal...
This commit is contained in:
Pavel "LEdoian" Turinsky 2021-02-09 20:08:26 +01:00
parent a8f91e1222
commit c77eb932f8
2 changed files with 0 additions and 19 deletions

View file

@ -123,11 +123,6 @@ urlpatterns = [
org_required(views.soustredeniObalkyView),
name='seminar_soustredeni_obalky'
),
path(
'org/vloz_body/<int:tema>/',
org_required(views.VlozBodyView.as_view()),
name='seminar_org_vlozbody'
),
# příprava na nestatický orgorozcestník
path(
'org/rozcestnik/',

View file

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