fix: 修复假数据构造

pull/8325/head
ibuler 2022-05-30 16:20:34 +08:00 committed by 老广
parent 196663f205
commit 327c6beab4
1 changed files with 1 additions and 0 deletions

View File

@ -47,6 +47,7 @@ class SessionGenerator(FakeDataGenerator):
org_id=self.org.id,
date_start=date_start,
date_end=date_end,
is_finished=True
)
objects.append(Session(**data))
creates = Session.objects.bulk_create(objects, ignore_conflicts=True)