summaryrefslogtreecommitdiff
path: root/cli/app/controllers/tile_controller.py
diff options
context:
space:
mode:
Diffstat (limited to 'cli/app/controllers/tile_controller.py')
-rw-r--r--cli/app/controllers/tile_controller.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/cli/app/controllers/tile_controller.py b/cli/app/controllers/tile_controller.py
index 6e68cb9..3fddbec 100644
--- a/cli/app/controllers/tile_controller.py
+++ b/cli/app/controllers/tile_controller.py
@@ -21,6 +21,14 @@ class TileView(CrudView):
def on_create(self, session, form, item):
item.settings = form['settings']
+ item.graph_id = int(form['graph_id'])
+ item.page_id = int(form['page_id'])
+ if 'target_page_id' in form and form['target_page_id']:
+ item.target_page_id = int(form['target_page_id'])
def on_update(self, session, form, item):
item.settings = form['settings']
+ if 'target_page_id' in form and form['target_page_id']:
+ item.target_page_id = int(form['target_page_id'])
+ else:
+ item.target_page_id = None