diff --git a/contracts/models.py b/contracts/models.py index 17a15c82307ac6666cb9a0171dc7a6df8b8f1c6a..e717261023e8ecbae4ecdf699444289b14bf8782 100644 --- a/contracts/models.py +++ b/contracts/models.py @@ -102,7 +102,7 @@ class RepresentativeMixin: raise NotImplementedError def __str__(self) -> str: - result = self.name + result = str(self.name) if self.function is not None: result += f", {self.function}" @@ -255,7 +255,7 @@ class Signee( return super().clean() def __str__(self) -> str: - result = self.name + result = str(self.name) if self.ico_number is not None: result += f" ({self.ico_number})" @@ -356,7 +356,7 @@ class Contractee( return reverse("contracts:view_contractee", args=(self.id,)) def __str__(self) -> str: - result = self.name + result = str(self.name) if self.department is not None: result += f", {self.department}"