From 32bca992b740ed0ce9227bc893aae886be72e59d Mon Sep 17 00:00:00 2001 From: "Tomas \"Jethro\" Pokorny" Date: Sat, 30 May 2020 23:59:54 +0200 Subject: [PATCH] seminar | TreeNode - opraven lower_node, ale ma bug v Treelib --- seminar/views/views_all.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/seminar/views/views_all.py b/seminar/views/views_all.py index 9aaf46ab..e5aef445 100644 --- a/seminar/views/views_all.py +++ b/seminar/views/views_all.py @@ -205,9 +205,10 @@ class TreeNodePodvesitView(generic.base.View): node = s.TreeNode.objects.get(pk=self.kwargs['pk']) kam = self.kwargs['kam'] if kam == 'pred': - lower_node(node) + treelib.lower_node(node) elif kam == 'za': raise NotImplementedError('Podvěsit za není zatím podporováno') + return redirect(request.headers.get('referer')) class TreeNodeProhoditView(generic.base.View): def post(self, request, *args, **kwargs):