We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8e49f76 commit 90f4556Copy full SHA for 90f4556
packages/models-library/src/models_library/invitations.py
@@ -50,7 +50,7 @@ class InvitationContent(InvitationInputs):
50
created: datetime = Field(..., description="Timestamp for creation")
51
52
def as_invitation_inputs(self) -> InvitationInputs:
53
- return self.copy(exclude={"created"})
+ return self.model_validate(self.model_dump(exclude={"created"})) # copy excluding "created"
54
55
@classmethod
56
def create_from_inputs(
0 commit comments