What do you want to save?
Add Code snippet
New code examples
-
Python 2022-01-31 23:32:16
django bulk update
objs = [ Entry.objects.create(headline='Entry 1'), Entry.objects.create(headline='Entry 2'), ] objs[0].headline = 'This is entry 1' objs[1].headline = 'This is entry 2' Entry.objects.bulk_update(objs, ['headline']) # Caveats # # -You cannot updat... Add solution