Skip to content

Commit

Permalink
Making row_limit freeform
Browse files Browse the repository at this point in the history
  • Loading branch information
mistercrunch committed Dec 15, 2015
1 parent d4588e0 commit c2736b3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions panoramix/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,6 @@ def field_css_classes(self, fieldname):


class FormFactory(object):
row_limits = [10, 50, 100, 500, 1000, 5000, 10000, 50000]
series_limits = [0, 5, 10, 25, 50, 100, 500]
fieltype_class = {
SelectField: 'select2',
Expand Down Expand Up @@ -193,10 +192,11 @@ def __init__(self, viz):
'1 year ago'])
),
'row_limit':
SelectField(
FreeFormSelectField(
'Row limit',
default=config.get("ROW_LIMIT"),
choices=self.choicify(self.row_limits)),
choices=self.choicify(
[10, 50, 100, 250, 500, 1000, 5000, 10000, 50000])),
'limit':
SelectField(
'Series limit',
Expand Down

0 comments on commit c2736b3

Please sign in to comment.