1👍
✅
My guess is that you’re seeing this because Django 1.6 added HTML5 input types to their forms. (Check the generated form field for type="number"
.) So it is the browser that is checking and rejecting your value, presumably because it doesn’t recognize scientific notation.
If my guess is right, the simple solution is just to customize your form and change the widget for that field to a regular TextInput
. Another possible option is to add the novalidate
attribute to your form in the template.
For more discussion see this thread on django-developers.
Source:stackexchange.com