Opened 10 years ago
Last modified 10 years ago
#23690 closed Cleanup/optimization
Docs for Rendering fields manually <label for="...."> showing static rather than dynamic code — at Initial Version
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.