Skip to content

Commit 90f4556

Browse files
fix model copy
1 parent 8e49f76 commit 90f4556

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/models-library/src/models_library/invitations.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ class InvitationContent(InvitationInputs):
5050
created: datetime = Field(..., description="Timestamp for creation")
5151

5252
def as_invitation_inputs(self) -> InvitationInputs:
53-
return self.copy(exclude={"created"})
53+
return self.model_validate(self.model_dump(exclude={"created"})) # copy excluding "created"
5454

5555
@classmethod
5656
def create_from_inputs(

0 commit comments

Comments
 (0)