mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-12 22:18:25 +02:00
linted
This commit is contained in:
parent
87a9a3f9d6
commit
5ea77e2934
2 changed files with 2 additions and 2 deletions
|
@ -44,7 +44,7 @@ class Portfolio(TimeStampedModel):
|
|||
help_text="Associated senior official",
|
||||
unique=False,
|
||||
null=True,
|
||||
blank=True
|
||||
blank=True,
|
||||
)
|
||||
|
||||
organization_type = models.CharField(
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue