Skip to content

Commit e944e1e

Browse files
nuclearcatJenySadadia
authored andcommitted
fix(models.py): Add default value to model
Now we need default value for every field. Signed-off-by: Denys Fedoryshchenko <[email protected]>
1 parent c0328b3 commit e944e1e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

kernelci/api/models.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -815,7 +815,8 @@ class EventHistory(DatabaseModel):
815815
default_factory=datetime.now
816816
)
817817
data: Dict[str, Any] = Field(
818-
description='Event data'
818+
description='Event data',
819+
default={}
819820
)
820821

821822
@classmethod

0 commit comments

Comments
 (0)