Open beamalsky opened 5 years ago
I did a little more reading on this (see this article), and HTML5 validation does seem pretty cool. I'm interested in trying it out in smaller projects, but as it's not easily compatible with the LeafletWidget (as it's not an input
, select
, or textarea
element) I think we're making the right decision in using Django validation.
All forms should be using Django's form validation! Go over all forms carefully to turn off HTML5 validation and make sure Django's is working and displaying errors properly.
Wise words from @jeancochrane:
On turning off HTML5 validation: https://docs.djangoproject.com/en/2.2/ref/forms/api/#django.forms.Form.use_required_attribute
Supersedes #31.