Skip to content

Commit

Permalink
[hotfix] granularity fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mistercrunch committed Mar 17, 2016
1 parent f453932 commit 987a1af
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion panoramix/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -567,13 +567,15 @@ def add_to_form(attrs):
"engine basis in the Panoramix source code"))
add_to_form(time_fields)
field_css_classes['time_grain_sqla'] = ['form-control', 'select2']
field_css_classes['granularity_sqla'] = ['form-control', 'select2']
else:
time_fields = 'granularity_sqla'
add_to_form((time_fields, ))
add_to_form(('since', 'until'))
field_css_classes['granularity'] = ['form-control', 'select2']
else:
time_fields = 'granularity'
add_to_form(('granularity',))
field_css_classes['granularity'] = ['form-control', 'select2']

QueryForm.fieldsets = ({
'label': 'Time',
Expand Down

0 comments on commit 987a1af

Please sign in to comment.