convert _graph_editing to bool

This commit is contained in:
Laura Klünder 2017-07-26 16:18:16 +02:00
parent 072edfd84b
commit 09e77b4917
2 changed files with 14 additions and 7 deletions

View file

@ -378,6 +378,8 @@ def graph_edit(request, level=None, space=None):
})
if graph_editing_settings['click_anywhere'] != 'noop':
graph_editing = 'edit-create-nodes'
if graph_editing_settings['click_anywhere'] == 'create_node_if_none_active':
graph_editing = 'edit-create-if-none-active-nodes'
allow_clicked_position = True
if request.method == 'POST':