how to update multiple fields via
Model.objects.bulk_create(list)
I try it
Model.objects.bulk_create(list).update(startD=startD, endD=endD)
but error show 'list' object has no attribute 'update'
how to update multiple fields via
Model.objects.bulk_create(list)
I try it
Model.objects.bulk_create(list).update(startD=startD, endD=endD)
but error show 'list' object has no attribute 'update'
you can try this:
this code will update all of the table from this model
but if you want to update one of the data table of this model try this code: