Handling race condition in model.save()

后端 未结 3 1984
时光取名叫无心
时光取名叫无心 2020-12-15 06:32

How should one handle a possible race condition in a model\'s save() method?

For example, the following example implements a model with an ordered list

3条回答
  •  北海茫月
    2020-12-15 06:59

    Add optional FOR UPDATE clause to QuerySets http://code.djangoproject.com/ticket/2705

提交回复
热议问题