diff --git a/controllers.py b/controllers.py index 717729a450..2070d5b050 100644 --- a/controllers.py +++ b/controllers.py @@ -392,7 +392,9 @@ def post(self, query_id): if 'data_source_id' in query_def: query_def['data_source'] = query_def.pop('data_source_id') - query_def['last_modified_by'] = self.current_user + # Don't set "last_modified_by" if the user only refreshing this query + if not ('latest_query_data' in query_def and len(query_def.keys()) == 1): + query_def['last_modified_by'] = self.current_user # TODO: use #save() with #dirty_fields. models.Query.update_instance(query_id, **query_def)