How can I access a Django Form fieldset's legend in the template? -


this tried below. form being passed template views.py method, still not seeing legend.

<form id="exam_select">      {%for field in exams_form.fieldsets %}     <div class="checkbox">         <label><input type="checkbox" value="" id="tug_checkbox">{{field.legend}}</label>     </div>     {%endfor%}  </form> 


Comments