Re: [Django] #35433: NumberInput min_value attr overridden by IntegerField.widget_attrs

4 views
Skip to first unread message

Django

unread,
May 5, 2024, 10:34:07 PMMay 5
to django-...@googlegroups.com
#35433: NumberInput min_value attr overridden by IntegerField.widget_attrs
-------------------------+--------------------------------------
Reporter: mitch99 | Owner: nobody
Type: Bug | Status: new
Component: Forms | Version: 5.0
Severity: Normal | Resolution:
Keywords: | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------+--------------------------------------
Comment (by David Sanders):

Yup what Tim said: There will be people relying on this existing behaviour
👍

Another way to get `min="1"` is to use django-widget-tweaks:
https://github.com/jazzband/django-widget-tweaks I just tested it out and
it works 👍
--
Ticket URL: <https://code.djangoproject.com/ticket/35433#comment:6>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
May 6, 2024, 12:09:11 AMMay 6
to django-...@googlegroups.com
#35433: NumberInput min_value attr overridden by IntegerField.widget_attrs
-------------------------+--------------------------------------
Reporter: mitch99 | Owner: nobody
Type: Bug | Status: closed
Component: Forms | Version: 5.0
Severity: Normal | Resolution: wontfix
Keywords: | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------+--------------------------------------
Changes (by mitch99):

* resolution: => wontfix
* status: new => closed

Comment:

OK thanks I'll try these approaches.
--
Ticket URL: <https://code.djangoproject.com/ticket/35433#comment:7>
Reply all
Reply to author
Forward
0 new messages