datainfo = Datainfo()
datainfo.set_name_id = forminfo.pk
for setting in info['settings']:
apply_settings =setting['apply_settings']
apply_datadisc = setting['apply_datadisc']
datainfo.apply_settings=apply_settings
datainfo.apply_datadisc=apply_datadisc
datainfo.save()
这样后一次循环出的数据会把之前的数据覆盖掉,怎样把for循环的数据都存起来?