Skip to content

Commit

Permalink
Merge pull request #459 from olgakogan/patch-2
Browse files Browse the repository at this point in the history
Fixed an error in case a query doesn't have last_modified_date
  • Loading branch information
arikfr committed Jun 28, 2015
2 parents 4706bf8 + 8d81906 commit a0f4e26
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion redash/models.py
Expand Up @@ -395,7 +395,7 @@ def to_dict(self, with_stats=False, with_visualizations=False, with_user=True):

if with_user:
d['user'] = self.user.to_dict()
d['last_modified_by'] = self.last_modified_by.to_dict()
d['last_modified_by'] = self.last_modified_by.to_dict() if self.last_modified_by is not None else None
else:
d['user_id'] = self._data['user']

Expand Down

0 comments on commit a0f4e26

Please sign in to comment.