fix: 修复假数据构造

pull/8325/head
ibuler 3 years ago committed by 老广
parent 196663f205
commit 327c6beab4

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

Loading…
Cancel
Save