This commit is contained in:
Maxime Beauchemin 2016-04-08 22:32:12 -07:00
parent 25831f0033
commit a3dcb0f309
1 changed files with 3 additions and 1 deletions

View File

@ -113,7 +113,9 @@ class FormFactory(object):
viz = self.viz
datasource = viz.datasource
default_metric = datasource.metrics_combo[0][0]
default_groupby = datasource.groupby_column_names[0]
gb_cols = datasource.groupby_column_names
default_groupby = gb_cols[0] if gb_cols else None
group_by_choices = [(s, s) for s in datasource.groupby_column_names]
# Pool of all the fields that can be used in Caravel
self.field_dict = {