From fd6ebe6e128914946af370c1117591b6d0af90c6 Mon Sep 17 00:00:00 2001 From: Arik Fraimovich Date: Tue, 27 Jan 2015 12:52:17 +0200 Subject: [PATCH] Remove unneeded where clause which was preventing from text widgets to show. --- redash/models.py | 1 - 1 file changed, 1 deletion(-) diff --git a/redash/models.py b/redash/models.py index fde7da726a..57e53aa70c 100644 --- a/redash/models.py +++ b/redash/models.py @@ -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)