Hi Jacob, That sounds like a sensible feature. Do you want to open a ticket and maybe implement it?
Cheers Markus On Wed, Mar 17, 2021, at 12:45 AM, Jacob Rief wrote: > If someone wants to use the step attribute as provided by the HTML field > <input type="number" ...> , she/he has to specify that using for instance > FloatField(widget=NumberInput(attrs={'step': 0.5})). > > Since the HTML standard offers a step attribute on input fields of type > number, > from my point of view, this feature shall be reflected by Django's > FloatField and > optionally DecimalField rather than having to parametrize the widget. > > Min- and max-values are already supported by the FloatField, so the step-value > would make sense here as well. It furthermore would require to revalidate the > step-value by Django's Form validation, rather than by HTML alone. > > – Jacob > > -- > You received this message because you are subscribed to the Google > Groups "Django developers (Contributions to Django itself)" group. > To unsubscribe from this group and stop receiving emails from it, send > an email to django-developers+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-developers/9a35aa63-0d22-4353-8f58-70a181e05791n%40googlegroups.com > > <https://groups.google.com/d/msgid/django-developers/9a35aa63-0d22-4353-8f58-70a181e05791n%40googlegroups.com?utm_medium=email&utm_source=footer>. -- You received this message because you are subscribed to the Google Groups "Django developers (Contributions to Django itself)" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-developers+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-developers/35ea5249-6c7d-44c6-8171-0730e0a660bd%40beta.fastmail.com.