Last updated 2 years ago
批量更新符合parentcode=ori_code的字段
MyModel.objects.filter(parentcode=ori_code).update(parentcode=new_code)