summaryrefslogtreecommitdiff
path: root/cli/app/controllers/graph_controller.py
diff options
context:
space:
mode:
Diffstat (limited to 'cli/app/controllers/graph_controller.py')
-rw-r--r--cli/app/controllers/graph_controller.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/cli/app/controllers/graph_controller.py b/cli/app/controllers/graph_controller.py
index fcca50a..9169818 100644
--- a/cli/app/controllers/graph_controller.py
+++ b/cli/app/controllers/graph_controller.py
@@ -13,6 +13,12 @@ class GraphView(CrudView):
model = Graph
form = GraphForm
+ def on_create(self, session, form, item):
+ item.settings = form['settings']
+
+ def on_update(self, session, form, item):
+ item.settings = form['settings']
+
def on_destroy(self, session, item):
for item in item.pages:
session.query(Tile).filter(Tile.page_id == item.id).delete(synchronize_session=False)