I have a model product and the corresponding product form, and I need to update the stock if we say 5 products, so I enter the data for the Product and ask how many items of this product I want to store, because all the products to save are the same, except for Django default ID, I was thinking of doing something like this in the view:
for i in range(0, 5): form.save()
Unfortunately, this retains only the latest form.
How else can I achieve what I need?
source share