#22383: Add the required tag to the input fields which are required for database entry ---------------------------------+------------------------------------ Reporter: abhishek.garg@… | Owner: nobody Type: New feature | Status: new Component: Forms | Version: master Severity: Normal | Resolution: Keywords: | Triage Stage: Accepted Has patch: 0 | Needs documentation: 0 Needs tests: 0 | Patch needs improvement: 0 Easy pickings: 0 | UI/UX: 0 ---------------------------------+------------------------------------
Comment (by timo): A form attribute doesn't seem like the most elegant solution, but it's consistent with other form attributes like `Form.required_css_class` and I cannot think of a better way. A setting is obviously a no-go... I suggest calling it `use_required_attribute` instead of `required_html_tag`. IMO, I think most people would want this behavior so the attribute could default to `True` and people could opt-out by setting it to `False`. It would just need to be noted in the release notes as a backwards incompatible change. -- Ticket URL: <https://code.djangoproject.com/ticket/22383#comment:7> Django <https://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-updates+unsubscr...@googlegroups.com. To post to this group, send email to django-updates@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/084.c50b6cb47db1c93610b7d8181cdbf8c4%40djangoproject.com. For more options, visit https://groups.google.com/d/optout.