I\'d like to update a table with Django - something like this in raw SQL:
update tbl_name set name = \'foo\' where name = \'bar\'
My first
IT returns number of objects are updated in table.
update_counts = ModelClass.objects.filter(name='bar').update(name="foo")
You can refer this link to get more information on bulk update and create. Bulk update and Create