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):