Fix numeric filter to allow 3 decimal places by default

This commit is contained in:
Lance Edgar 2017-08-08 17:04:59 -05:00
parent 4101e056e4
commit e80f8b31c1

View file

@ -74,6 +74,7 @@ class NumericValueRenderer(FilterValueRenderer):
""" """
def render(self, value=None, **kwargs): def render(self, value=None, **kwargs):
kwargs.setdefault('step', '0.001')
return tags.text(self.name, value=value, type='number', **kwargs) return tags.text(self.name, value=value, type='number', **kwargs)