Fix: when updating visualization need to ignore query_id

This commit is contained in:
Arik Fraimovich 2014-07-07 16:59:18 +03:00
parent 16a6c96c22
commit 17eb7e4146

View File

@ -338,6 +338,7 @@ class VisualizationAPI(BaseResource):
if 'options' in kwargs:
kwargs['options'] = json.dumps(kwargs['options'])
kwargs.pop('id', None)
kwargs.pop('query_id', None)
update = models.Visualization.update(**kwargs).where(models.Visualization.id == visualization_id)
update.execute()