li = [] for user in userlist: li.append(model.StudyRecord(user=user.name)) models.StudyRecord.object.bulk_create(li)
标签:inf pre models name bubuko model ima pen list
li = [] for user in userlist: li.append(model.StudyRecord(user=user.name)) models.StudyRecord.object.bulk_create(li)
标签:inf pre models name bubuko model ima pen list
原文地址:https://www.cnblogs.com/ldq1996/p/8133872.html