考虑以下代码:
questions = Question.objects.only('id', 'pqa_id', 'retain')
del_questions = questions.filter(retain=False)
# Some computations on del_questions
del_questions.delete()
add_questions = questions.filter(pqa_id=None)
将add_questions不包含问题retain=False?即questions当我们delete()在其子集上运行时是否重新评估对象del_questions?
相关分类