From 85f075e567606c25762d26abf9900ed808333bab Mon Sep 17 00:00:00 2001 From: Velid Aljic Date: Wed, 24 Oct 2018 12:12:45 +0200 Subject: [PATCH] Add response to create_widget route --- app/dashboards/api.py | 1 + 1 file changed, 1 insertion(+) diff --git a/app/dashboards/api.py b/app/dashboards/api.py index 6f03b69..ccff132 100644 --- a/app/dashboards/api.py +++ b/app/dashboards/api.py @@ -111,6 +111,7 @@ def create_widget(dashboard_id, device_id, height, width, x, y, widget = DashboardWidget(dashboard_id, device_id, height, width, x, y, chart_type, filters) widget.save() + return widget def delete_widget(widget_id):