Re: iterate a save in a form view based on a field value

2017-01-06 Thread roboslone
Hi! You probably want to use range() function for that. > On 6 Jan 2017, at 18:21, MikeKJ wrote: > > So I have a form of post values and one of the values is the number of > resources to be used, what I want to do is save multiple instances of the > form data based on the resource quantity to

iterate a save in a form view based on a field value

2017-01-06 Thread MikeKJ
So I have a form of post values and one of the values is the number of resources to be used, what I want to do is save multiple instances of the form data based on the resource quantity to be used. ResourceObject is the model name views.py snippet [code] rqb = int(resource_quantity