---------------------------------- html ------- ---------
{% for Deficiency in Deficiency_View %}
<tbody>
<tr>
<td class="hidden-phone"> {{ Deficiency.Institute }}</td>
<td class="hidden-phone"> {{ Deficiency.Course }}</td>
<td class="hidden-phone"> {{ Deficiency.StudentName }}</td>
<td> {{ Deficiency.FathersName }}</td>
<td class="hidden-phone"> {{ Deficiency.MothersName }}</td>
<td>Check: <input type="checkbox" name="EnrollmentGenerate" id="Enrollment_Generate"
value="{{ Deficiency.formNo }}"></td>
<td>
<input type="text" name="my_list" id="EnrolNo" value="
{{ Deficiency.Institute_Code }}{{ Deficiency.Course_Code }}{{ Deficiency.Branch_Code }}">
</td>
</tr>
{% endfor %}
-------------------------- -------- просмотр ----------------
formNo = request.POST.get('EnrollmentGenerate') # EnrollmentGenerate is a name="checkbox" a checkbox have loop in html
enrollment_Generate = EnrollmentForm.objects.get(formNo=formNo) # this is save only last checked Row not save all , i want save all selected checkbox in model
enrollment_Generate.EnrollmentNo = request.POST.get('my_list') # this is save only last value but i wanr save all (name="my_list" a text box have loop in html)
enrollment_Generate.save()
Примечание: модель EnrollmentForm в EnrollmentNo (не используйте форму, используйте обновление custum код данных)