Add comments

This commit is contained in:
zandercymatics 2024-08-14 08:30:55 -06:00
parent 40c52c4691
commit ffb7e146c7
No known key found for this signature in database
GPG key ID: FF4636ABEC9682B7
4 changed files with 10 additions and 2 deletions

View file

@ -2876,6 +2876,7 @@ class PortfolioAdmin(ListHeaderAdmin):
]
def portfolio_type(self, obj: models.Portfolio):
"""Returns the portfolio type, or "-" if the result is empty"""
return obj.portfolio_type if obj.portfolio_type else "-"
portfolio_type.short_description = "Portfolio type"