tickets: 6067
This data as json
id | created | changetime | last_pulled_from_trac | stage | status | component | type | severity | version | resolution | summary | description | owner | reporter | keywords | easy | has_patch | needs_better_patch | needs_tests | needs_docs | ui_ux |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
6067 | 2007-12-01 00:13:32 | 2008-03-07 14:38:13 | 2022-03-06 03:36:09.474552 | Unreviewed | closed | Forms | dev | worksforme | Small addition to newForms documentation regarding required fields in templates | In the documentation: http://www.djangoproject.com/documentation/newforms/#highlighting-required-fields-in-templates It might be useful to give an example of how to check if a field is required when accessing a form field directly. This would be in addition to the existing example which is demonstrating use when iterating over a form. I'd suggest an example such as {% if form.fieldName.field.required %}*{% endif %} Thanks | nobody | stp2007 <stp2007@solvingtheproblem.ca> | documentation | 0 | 0 | 0 | 0 | 0 | 0 |