Skip to content

Commit

Permalink
Merge pull request #364 from EverythingMe/fix/missing_text_widgets
Browse files Browse the repository at this point in the history
Remove unneeded where clause which was preventing from text widgets to show.
  • Loading branch information
arikfr committed Jan 27, 2015
2 parents 3b9d9ac + fd6ebe6 commit 521a32d
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion redash/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -452,7 +452,6 @@ def to_dict(self, with_widgets=False):
if with_widgets:
widgets = Widget.select(Widget, Visualization, Query, User)\
.where(Widget.dashboard == self.id)\
.where(Query.is_archived == False)\
.join(Visualization, join_type=peewee.JOIN_LEFT_OUTER)\
.join(Query, join_type=peewee.JOIN_LEFT_OUTER)\
.join(User, join_type=peewee.JOIN_LEFT_OUTER)
Expand Down

0 comments on commit 521a32d

Please sign in to comment.