From 7eab18f839616140fe3dbc4b51e29ec903c48077 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Tue, 2 Jun 2020 20:41:58 +0200 Subject: adding les pages --- cli/app/controllers/tile_controller.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'cli/app/controllers/tile_controller.py') 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'] -- cgit v1.2.3-70-g09d2