seminar | TreeNode - opraven lower_node, ale ma bug v Treelib

This commit is contained in:
Tomas "Jethro" Pokorny 2020-05-30 23:59:54 +02:00
parent 24642324ab
commit 32bca992b7

View file

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