This commit is contained in:
CocoByte 2024-06-21 14:03:40 -06:00
parent 87a9a3f9d6
commit 5ea77e2934
No known key found for this signature in database
GPG key ID: BBFAA2526384C97F
2 changed files with 2 additions and 2 deletions

View file

@ -44,7 +44,7 @@ class Portfolio(TimeStampedModel):
help_text="Associated senior official",
unique=False,
null=True,
blank=True
blank=True,
)
organization_type = models.CharField(

View file

@ -35,7 +35,7 @@ class SeniorOfficial(TimeStampedModel):
"""Returns the contact's name in Western order."""
names = [n for n in [self.first_name, self.last_name] if n]
return " ".join(names) if names else "Unknown"
def __str__(self):
if self.first_name or self.last_name:
return self.get_formatted_name()