mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-12 14:08:28 +02:00
Added Senior Official foreign key in Portfolio, along with model field updates (for required fields), and admin.py updates
This commit is contained in:
parent
a7273c8d49
commit
625d0e6f1f
4 changed files with 41 additions and 6 deletions
|
@ -38,6 +38,14 @@ class Portfolio(TimeStampedModel):
|
|||
default=FederalAgency.get_non_federal_agency,
|
||||
)
|
||||
|
||||
senior_official = models.ForeignKey(
|
||||
"registrar.SeniorOfficial",
|
||||
on_delete=models.PROTECT,
|
||||
help_text="Associated senior official",
|
||||
unique=False,
|
||||
default=FederalAgency.get_non_federal_agency,
|
||||
)
|
||||
|
||||
organization_type = models.CharField(
|
||||
max_length=255,
|
||||
choices=OrganizationChoices.choices,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue