Django updating db for selected ids

Posted by Hulk on Stack Overflow See other posts from Stack Overflow or by Hulk
Published on 2010-04-02T12:37:05Z Indexed on 2010/04/02 12:43 UTC
Read the original article Hit count: 472

In the following,

New row values in DB are 6,8.They are the ids of a field

I want to update these some other fields in the table based on these values

   row_newid=request.POST.get('row_updated_id')     //Array
   row_newdata=request.POST.get('row_updated_data')   //Array

   for newrow in row_newid:
        //how to update row_newdata for newrow values

No for all the ids in row_newid how do i update row_newdata.

row_newdata has the values 'a' and 'b' for example.

thanks....

© Stack Overflow or respective owner

Related posts about django

Related posts about django-views