From 42f0f166d6681eea1a8f3b9201c6e2c859e97da7 Mon Sep 17 00:00:00 2001 From: Pavel 'LEdoian' Turinsky Date: Thu, 23 Apr 2020 01:02:47 +0200 Subject: [PATCH] =?UTF-8?q?Fix:=20*Node=20nen=C3=AD=20TNLData.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- seminar/views/views_all.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/seminar/views/views_all.py b/seminar/views/views_all.py index a91743c0..ee21791a 100644 --- a/seminar/views/views_all.py +++ b/seminar/views/views_all.py @@ -159,8 +159,8 @@ class ProblemView(generic.DetailView): context['tnldata'] = TNLData.from_treenode(self.object.reseninode) elif isinstance(self.object, s.Uloha): # FIXME: Teď vždycky zobrazujeme i vzorák! Možná by bylo hezčí/lepší mít to stejně jako pro Téma: procházet jen dosažitelné z Ročníku / čísla / whatever - tnl_zadani = self.object.ulohazadaninode - tnl_vzorak = self.object.ulohavzoraknode + tnl_zadani = TNLData.from_treenode(self.object.ulohazadaninode) + tnl_vzorak = TNLData.from_treenode(self.object.ulohavzoraknode) context['tnldata'] = TNLData.from_tnldata_list([tnl_zadani, tnl_vzorak]) elif isinstance(self.object, s.Tema): rocniknode = self.object.rocnik.rocniknode