mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-05-16 17:47:02 +02:00
Update admin.py
This commit is contained in:
parent
52e3fb89b7
commit
e92b0c5b79
1 changed files with 2 additions and 2 deletions
|
@ -2927,11 +2927,11 @@ class PortfolioAdmin(ListHeaderAdmin):
|
|||
"portfolio_type",
|
||||
]
|
||||
|
||||
def federal_type(self, obj: models.portfolio):
|
||||
def federal_type(self, obj: models.Portfolio):
|
||||
"""Returns the federal_type field"""
|
||||
return BranchChoices.get_branch_label(obj.federal_type) if obj.federal_type else "-"
|
||||
|
||||
federal_type.short_description = "Federal type"
|
||||
federal_type.short_description = "Federal type" # type: ignore
|
||||
|
||||
def created_on(self, obj: models.Portfolio):
|
||||
"""Returns the created_at field, with a different short description"""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue