Add in Federal Agency models for domain request or domain info

This commit is contained in:
Rebecca Hsieh 2024-04-15 10:33:28 -07:00
parent 64d0ec3f93
commit 0445e3dcca
No known key found for this signature in database
2 changed files with 17 additions and 0 deletions

View file

@ -29,8 +29,17 @@ class DomainInformation(TimeStampedModel):
BranchChoices = DomainRequest.BranchChoices BranchChoices = DomainRequest.BranchChoices
# TODO for #1975: Delete this after we run the new migration
AGENCY_CHOICES = DomainRequest.AGENCY_CHOICES AGENCY_CHOICES = DomainRequest.AGENCY_CHOICES
# TODO: Confirm if we want federal_agency or just agency
federal_agency = models.ForeignKey(
"registrar.FederalAgency",
on_delete=models.PROTECT,
help_text="Associated federal agency",
unique=False,
)
# This is the domain request user who created this domain request. The contact # This is the domain request user who created this domain request. The contact
# information that they gave is in the `submitter` field # information that they gave is in the `submitter` field
creator = models.ForeignKey( creator = models.ForeignKey(

View file

@ -449,6 +449,14 @@ class DomainRequest(TimeStampedModel):
blank=True, blank=True,
) )
# TODO: Confirm if we want federal_agency or just agency
federal_agency = models.ForeignKey(
"registrar.FederalAgency",
on_delete=models.PROTECT,
help_text="Associated federal agency",
unique=False,
)
# This is the domain request user who created this domain request. The contact # This is the domain request user who created this domain request. The contact
# information that they gave is in the `submitter` field # information that they gave is in the `submitter` field
creator = models.ForeignKey( creator = models.ForeignKey(