mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-05-17 18:09:25 +02:00
minor cleanup
This commit is contained in:
parent
4831e93f3c
commit
6b669df5e7
4 changed files with 8 additions and 8 deletions
|
@ -1,4 +1,4 @@
|
||||||
# Generated by Django 4.2.10 on 2024-06-17 17:08
|
# Generated by Django 4.2.10 on 2024-06-17 19:47
|
||||||
|
|
||||||
from django.conf import settings
|
from django.conf import settings
|
||||||
from django.db import migrations, models
|
from django.db import migrations, models
|
||||||
|
@ -164,7 +164,7 @@ class Migration(migrations.Migration):
|
||||||
name="portfolio",
|
name="portfolio",
|
||||||
field=models.OneToOneField(
|
field=models.OneToOneField(
|
||||||
blank=True,
|
blank=True,
|
||||||
help_text="Portfolio associated with this domain",
|
help_text="Portfolio associated with this domain request",
|
||||||
null=True,
|
null=True,
|
||||||
on_delete=django.db.models.deletion.PROTECT,
|
on_delete=django.db.models.deletion.PROTECT,
|
||||||
related_name="DomainInformation_portfolio",
|
related_name="DomainInformation_portfolio",
|
||||||
|
|
|
@ -310,7 +310,7 @@ class DomainRequest(TimeStampedModel):
|
||||||
null=True,
|
null=True,
|
||||||
blank=True,
|
blank=True,
|
||||||
related_name="DomainInformation_portfolio",
|
related_name="DomainInformation_portfolio",
|
||||||
help_text="Portfolio associated with this domain",
|
help_text="Portfolio associated with this domain request",
|
||||||
)
|
)
|
||||||
|
|
||||||
# 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
|
||||||
|
|
|
@ -21,11 +21,11 @@ class Portfolio(TimeStampedModel):
|
||||||
OrganizationChoices = DomainRequest.OrganizationChoices
|
OrganizationChoices = DomainRequest.OrganizationChoices
|
||||||
StateTerritoryChoices = DomainRequest.StateTerritoryChoices
|
StateTerritoryChoices = DomainRequest.StateTerritoryChoices
|
||||||
|
|
||||||
# creator- user foreign key- stores who created this model should get the user who is adding
|
# creator - stores who created this model. If no creator is specified in DJA,
|
||||||
# it via django admin if there is a user (aka not done via commandline/ manual means)"""
|
# then the creator will default to the current request user"""
|
||||||
creator = models.ForeignKey("registrar.User", on_delete=models.PROTECT, help_text="Associated user", unique=False)
|
creator = models.ForeignKey("registrar.User", on_delete=models.PROTECT, help_text="Associated user", unique=False)
|
||||||
|
|
||||||
# notes- text field (copy what is done on requests/domains)
|
# notes - text field (copies what is done on domain requests)
|
||||||
notes = models.TextField(
|
notes = models.TextField(
|
||||||
null=True,
|
null=True,
|
||||||
blank=True,
|
blank=True,
|
||||||
|
@ -41,7 +41,7 @@ class Portfolio(TimeStampedModel):
|
||||||
default=get_default_federal_agency,
|
default=get_default_federal_agency,
|
||||||
)
|
)
|
||||||
|
|
||||||
# organization type- should match organization types allowed on domain info
|
# organization type - should match organization types allowed on domain info
|
||||||
organization_type = models.CharField(
|
organization_type = models.CharField(
|
||||||
max_length=255,
|
max_length=255,
|
||||||
choices=OrganizationChoices.choices,
|
choices=OrganizationChoices.choices,
|
||||||
|
|
|
@ -2291,7 +2291,7 @@ class TestDomainRequestAdmin(MockEppLib):
|
||||||
"rejection_reason",
|
"rejection_reason",
|
||||||
"action_needed_reason",
|
"action_needed_reason",
|
||||||
"federal_agency",
|
"federal_agency",
|
||||||
'portfolio',
|
"portfolio",
|
||||||
"creator",
|
"creator",
|
||||||
"investigator",
|
"investigator",
|
||||||
"generic_org_type",
|
"generic_org_type",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue