Handle None __str__

This commit is contained in:
PCoder 2021-11-29 10:41:18 +05:30
parent 5ef97645cb
commit f4a224f3d7
1 changed files with 1 additions and 1 deletions

View File

@ -665,7 +665,7 @@ Involved scientist''')
return " ".join([self.title, self.first_name, self.last_name])
def __str__(self):
return self.fullname()
return self.fullname() if self.fullname() else ""
def dict(self):
return {