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):