mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-08-31 15:11:27 +00:00
fix: 修复假数据构造
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user