Skip to content

Commit

Permalink
[hotfix] druid granularity missing
Browse files Browse the repository at this point in the history
  • Loading branch information
mistercrunch committed Mar 17, 2016
1 parent f0b2f98 commit f453932
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions panoramix/forms.py
Expand Up @@ -571,13 +571,16 @@ def add_to_form(attrs):
time_fields = 'granularity_sqla'
add_to_form((time_fields, ))
add_to_form(('since', 'until'))
QueryForm.fieldsets = ({
'label': 'Time',
'fields': (
time_fields,
('since', 'until'),
),
'description': "Time related form attributes",
},) + tuple(QueryForm.fieldsets)
field_css_classes['granularity'] = ['form-control', 'select2']
else:
time_fields = 'granularity'

QueryForm.fieldsets = ({
'label': 'Time',
'fields': (
time_fields,
('since', 'until'),
),
'description': "Time related form attributes",
},) + tuple(QueryForm.fieldsets)
return QueryForm

0 comments on commit f453932

Please sign in to comment.