About Flexible Decimal Point Separators in Form Fields

Add lang="en-150" to <input type="number" /> if you want to allow both, point and comma, as the decimal point separator.

If you are using django-crispy-forms, you can do that with such declaration in the form helper:

layout.Field("price", lang="en-150"),

Tips and Tricks Programming User Experience Django 4.2 Django 3.2 Django 2.2 HTML5 django-crispy-forms