From eb5136e2023fb0999995befff60624d5d4c51c94 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Thu, 11 Jun 2020 00:35:30 +0200 Subject: fixing bugs --- cli/app/controllers/page_controller.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'cli/app/controllers/page_controller.py') diff --git a/cli/app/controllers/page_controller.py b/cli/app/controllers/page_controller.py index 587c61d..236b6f8 100644 --- a/cli/app/controllers/page_controller.py +++ b/cli/app/controllers/page_controller.py @@ -20,6 +20,8 @@ class PageView(CrudView): def on_create(self, session, form, item): item.settings = form['settings'] + if form['description'] is None or item.description is None: + item.description = '' item.graph_id = int(form['graph_id']) def on_update(self, session, form, item): -- cgit v1.2.3-70-g09d2