I have a form with this inputs:
<input name="person[name]" value="">
<input name="person[surname]" value="">
<input name="person[age]" value="">
when I submit, how can i assign that html array to a variable, cause request.POST.getlist('person') doesn't work, i been checking for other post but the only one i found doesn't have anything usefull
I hope someone could help me figure it out, cause a read the doc, and did quite get the way to do it...
the thing is that i have a table in my db with discounts... where every discount has a default value... so i made it
discounts = Discount.objects.all( )
{% for i in discounts %}
<input name="discount[{{ i.id }}]" value="{{ i.default_value }}">
{% endfor %}
and on my i dont have any method to catch that html array i'm sending... any suggestions?