Return query with visualizations when saving.

This commit is contained in:
Arik Fraimovich 2014-02-09 19:38:24 +02:00
parent 44cd109ba3
commit 93bc54e275

View File

@ -209,7 +209,7 @@ class QueryAPI(BaseResource):
query = models.Query.get_by_id(query_id)
return query.to_dict(with_result=False)
return query.to_dict(with_result=False, with_visualizations=True)
def get(self, query_id):
q = models.Query.get(models.Query.id == query_id)