matllubos/django-is-core — pull request #110 by oskholl (2014-11-04 15:19:06+00:00)
Title: New model decimal field with the 'step' attribute

Allows for the 'step' attribute in the resulting HTML input element to be set on the model. Defaults to 'any' which is much more convenient than Django's 0.01. 'Any' allows for arbitrary float values and the step performed by the widget is 1.

Any other value means the number in the input element must correspond to the step. Browser performs validation and forbids sending e.g. input with value 2.1 and step=1 cannot be sent.