2👍
✅
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.
Source:stackexchange.com