mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-22 18:56:15 +02:00
lint
This commit is contained in:
parent
81e76fe04a
commit
88b38baaa7
2 changed files with 3 additions and 2 deletions
|
@ -146,7 +146,6 @@ class Portfolio(TimeStampedModel):
|
|||
else:
|
||||
return self.DomainRequest_portfolio.all().order_by(*order_by)
|
||||
|
||||
|
||||
# == Getters for suborganization == #
|
||||
def get_suborganizations(self):
|
||||
"""Returns all suborganizations associated with this portfolio"""
|
||||
|
|
|
@ -84,7 +84,9 @@ class UserPortfolioPermission(TimeStampedModel):
|
|||
"""Returns a readable list of self.roles"""
|
||||
readable_roles = []
|
||||
if self.roles:
|
||||
readable_roles = sorted([UserPortfolioRoleChoices.get_user_portfolio_role_label(role) for role in self.roles])
|
||||
readable_roles = sorted(
|
||||
[UserPortfolioRoleChoices.get_user_portfolio_role_label(role) for role in self.roles]
|
||||
)
|
||||
return readable_roles
|
||||
|
||||
def _get_portfolio_permissions(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue