seminar | TreeNode - opraven lower_node, ale ma bug v Treelib
This commit is contained in:
parent
24642324ab
commit
32bca992b7
1 changed files with 2 additions and 1 deletions
|
@ -205,9 +205,10 @@ class TreeNodePodvesitView(generic.base.View):
|
||||||
node = s.TreeNode.objects.get(pk=self.kwargs['pk'])
|
node = s.TreeNode.objects.get(pk=self.kwargs['pk'])
|
||||||
kam = self.kwargs['kam']
|
kam = self.kwargs['kam']
|
||||||
if kam == 'pred':
|
if kam == 'pred':
|
||||||
lower_node(node)
|
treelib.lower_node(node)
|
||||||
elif kam == 'za':
|
elif kam == 'za':
|
||||||
raise NotImplementedError('Podvěsit za není zatím podporováno')
|
raise NotImplementedError('Podvěsit za není zatím podporováno')
|
||||||
|
return redirect(request.headers.get('referer'))
|
||||||
|
|
||||||
class TreeNodeProhoditView(generic.base.View):
|
class TreeNodeProhoditView(generic.base.View):
|
||||||
def post(self, request, *args, **kwargs):
|
def post(self, request, *args, **kwargs):
|
||||||
|
|
Loading…
Reference in a new issue