Browse Source

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

export_seznamu_prednasek
parent
commit
32bca992b7
  1. 3
      seminar/views/views_all.py

3
seminar/views/views_all.py

@ -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…
Cancel
Save