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
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
2 matches
Mail list logo