Add response to create_widget route

develop
Velid Aljic 2018-10-24 12:12:45 +02:00
parent ef3afdded1
commit 85f075e567
1 changed files with 1 additions and 0 deletions

View File

@ -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, widget = DashboardWidget(dashboard_id, device_id, height, width, x, y,
chart_type, filters) chart_type, filters)
widget.save() widget.save()
return widget
def delete_widget(widget_id): def delete_widget(widget_id):