2 bulk_update
Sicong редактировал(а) эту страницу 2021-11-29 11:01:27 -08:00

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.