I am using Django 4.1 and Bootstrap 5.
I think I'd like to mark required fields in a form as required, or maybe optional fields as optional, as suggested in this question.
Django/Bootstrap already styles fields as green/red after form submission, if a required field is missing, but my request is when the form is first rendered.
Could be with *s or with "(optional)" or whatever.
What's the best way to do it?
A good option would be to override default fields attributes of a form. You can use for
labelsto add*orhelp_textsto add(required)for instance.