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.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/cli/app/controllers/tile_controller.py b/cli/app/controllers/tile_controller.py
index 58fd6d0..6e68cb9 100644
--- a/cli/app/controllers/tile_controller.py
+++ b/cli/app/controllers/tile_controller.py
@@ -18,3 +18,9 @@ class TileView(CrudView):
if page_id is not None:
query = query.filter(Tile.page_id == int(page_id))
return query
+
+ def on_create(self, session, form, item):
+ item.settings = form['settings']
+
+ def on_update(self, session, form, item):
+ item.settings = form['settings']