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