I think adding the `required` attribute but ignoring the other possible html form validations (like `min` and `max` [1] for <input> that are used by the forms.IntegerField) seems a bit half-hearted.
My opinion is that having the required attribute is pretty cool, but should come with all other possible validations baked in then. django-floppyforms already includes those validations already in the HTML output of forms and it turns out to be quite useful in many situations. Even if you turn of the browser validation by adding the novalidate attribute to the <form> tag, it's good to have this meta data in the HTML representation, e.g. for styling. Gregor [1] https://developer.mozilla.org/en-US/docs/Web/Guide/HTML/Forms/Data_form_validation 2014-04-10 20:00 GMT+02:00 anubhav joshi <anubhav9...@gmail.com>: > > > On Thursday, April 10, 2014 11:19:18 PM UTC+5:30, anubhav joshi wrote: >> >> A ticket has been opened asking to add HTML5 required tag in forms for >> the fields which are required for database entry. >> >> Better wording: > "required for database entry" --> fields have *required* attribute as > *True* > > -- > You received this message because you are subscribed to the Google Groups > "Django developers" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to django-developers+unsubscr...@googlegroups.com. > To post to this group, send email to django-developers@googlegroups.com. > Visit this group at http://groups.google.com/group/django-developers. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-developers/f7f8a915-8cc4-4505-8bc3-770599afeb30%40googlegroups.com<https://groups.google.com/d/msgid/django-developers/f7f8a915-8cc4-4505-8bc3-770599afeb30%40googlegroups.com?utm_medium=email&utm_source=footer> > . > > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Django developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-developers+unsubscr...@googlegroups.com. To post to this group, send email to django-developers@googlegroups.com. Visit this group at http://groups.google.com/group/django-developers. To view this discussion on the web visit https://groups.google.com/d/msgid/django-developers/CALjSGCP3oS%2BmKRMs%3DJ%3D1z0R%2BcP7FNGfx%2B65%3DN9Pu44iJXkhVaw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.