Getting POST values from a Django request when they start with the same string
yeah, like Daniel said, so I add the next
posted =    [{k.replace('person__',''):v} for k, v in request.POST.items() if k.startswith('person__')]
then I can use a model form with posted data
I have a form on my site that allows the user to add names to an object. The user can hit a plus button to add another name or a minus button to remove a name. I need to be able to easily pull all POST variables that start with a name.
For example. A user adds two names so we have two text boxes names 'name0' and 'name1'. Is there a way that I can pull those two values without know how many I may have?
One reason I want to do this without knowing is because they could do any number of add and remove functions on the list of names. So I could end up with this:
'name2', 'name10', 'name11'
for the names that come in. I don't want to have to know the exact values. I just want to pull all POST variables that start with 'name'. 
Is this possible?