Opened 11 years ago
Last modified 11 years ago
#23690 closed Cleanup/optimization
Docs for Rendering fields manually <label for="...."> showing static rather than dynamic code — at Initial Version
| Reported by: | awidgery | Owned by: | nobody |
|---|---|---|---|
| Component: | Documentation | Version: | 1.7 |
| Severity: | Normal | Keywords: | |
| Cc: | Triage Stage: | Ready for checkin | |
| Has patch: | yes | Needs documentation: | no |
| Needs tests: | no | Patch needs improvement: | no |
| Easy pickings: | no | UI/UX: | no |
Description
See here:
https://docs.djangoproject.com/en/1.7/topics/forms/#rendering-fields-manually
<div class="fieldWrapper">
{{ form.subject.errors }}
<label for="id_subject">Email subject:</label>
{{ form.subject }}
</div>
Wouldn't it be better to show:
<div class="fieldWrapper">
{{ form.subject.errors }}
<label for="{{ form.subject.auto_id">Email subject:</label>
{{ form.subject }}
</div>
Note:
See TracTickets
for help on using tickets.