Skip to content
Snippets Groups Projects

Add missing __str__ methods to the models

Merged Sivert Kronen Hatteberg requested to merge GREG-143_add_dunder_strings into master
All threads resolved!
1 file
+ 2
2
Compare changes
  • Side-by-side
  • Inline
+ 2
2
@@ -380,7 +380,7 @@ class ConsentChoice(BaseModel):
def __str__(self) -> str:
return (
f"{self.__class__.__name__}(id={self.pk}, value={self.value}"
f"{self.__class__.__name__}(id={self.pk}, value={self.value}, "
f"type={self.consent_type}))"
)
@@ -576,7 +576,7 @@ class InvitationLink(BaseModel):
def __str__(self) -> str:
return (
f"{self.__class__.__name__}(id={self.pk}, invitation={self.invitation}, "
f"uuid={self.uuid}, expore={self.expire})"
f"uuid={self.uuid}, expire={self.expire})"
)
Loading