Skip to content

Commit

Permalink
closes #292 (#304)
Browse files Browse the repository at this point in the history
  • Loading branch information
mistercrunch committed Apr 9, 2016
1 parent 25831f0 commit a3dcb0f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion caravel/forms.py
Expand Up @@ -113,7 +113,9 @@ def __init__(self, viz):
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 = {
Expand Down

0 comments on commit a3dcb0f

Please sign in to comment.