Skip to content

bulk_update

Sicong edited this page Nov 29, 2021 · 2 revisions

Usage: bulk_update(objs, fields, batch_size=None, default=0)

bulk_update takes a default parameter, to avoid the following error when setting fields to null.
At least one of the result expressions in a CASE specification must be an expression other than the NULL constant.

Clone this wiki locally