[Answered ]-Creating Form element ids in the form template in Django


You need to put the <form> tag within the for loop, so that you are actually creating 10 different forms instead of 10 copies of the same form elements. But you still have the problem that you would need 10 separate submit buttons. If you’re actually looking for a list of forms, check out the Django FormSet documentation.

Leave a comment