#21752: forms.NumberInput - "step" always forced to "any", cannot modify
----------------------------+--------------------
Reporter: orcein@… | Owner: nobody
Type: Bug | Status: new
Component: Forms | Version: 1.6
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Easy pickings: 0 | UI/UX: 0
----------------------------+--------------------
I'm trying to customize my form widgets, and I have the following code:
{{{
rand_range = forms.NumberInput(attrs={'step': 0.01, 'max': 1.0, 'min':
0.0})
}}}
However when the field is rendered in HTML, the step is always set to
"any". I have also tried putting the number in quotes to no perceivable
result. "min" and "max" values are working correctly.
--
Ticket URL: <https://code.djangoproject.com/ticket/21752>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/059.c0f6dc90ece0ad92a07ecf45f02dd853%40djangoproject.com.
For more options, visit https://groups.google.com/groups/opt_out.