mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-05-17 18:09:25 +02:00
update domain info / domain request
This commit is contained in:
parent
4c756bba69
commit
e798410ac4
3 changed files with 70 additions and 4 deletions
|
@ -0,0 +1,64 @@
|
||||||
|
# Generated by Django 4.2.10 on 2024-09-30 14:31
|
||||||
|
|
||||||
|
from django.db import migrations, models
|
||||||
|
import django.db.models.deletion
|
||||||
|
|
||||||
|
|
||||||
|
class Migration(migrations.Migration):
|
||||||
|
|
||||||
|
dependencies = [
|
||||||
|
("registrar", "0130_remove_federalagency_initials_federalagency_acronym_and_more"),
|
||||||
|
]
|
||||||
|
|
||||||
|
operations = [
|
||||||
|
migrations.AlterField(
|
||||||
|
model_name="domaininformation",
|
||||||
|
name="portfolio",
|
||||||
|
field=models.ForeignKey(
|
||||||
|
blank=True,
|
||||||
|
help_text="If blank, domain is not associated with a portfolio.",
|
||||||
|
null=True,
|
||||||
|
on_delete=django.db.models.deletion.PROTECT,
|
||||||
|
related_name="information_portfolio",
|
||||||
|
to="registrar.portfolio",
|
||||||
|
),
|
||||||
|
),
|
||||||
|
migrations.AlterField(
|
||||||
|
model_name="domaininformation",
|
||||||
|
name="sub_organization",
|
||||||
|
field=models.ForeignKey(
|
||||||
|
blank=True,
|
||||||
|
help_text="If blank, domain is associated with the overarching organization for this portfolio.",
|
||||||
|
null=True,
|
||||||
|
on_delete=django.db.models.deletion.PROTECT,
|
||||||
|
related_name="information_sub_organization",
|
||||||
|
to="registrar.suborganization",
|
||||||
|
verbose_name="Suborganization",
|
||||||
|
),
|
||||||
|
),
|
||||||
|
migrations.AlterField(
|
||||||
|
model_name="domainrequest",
|
||||||
|
name="portfolio",
|
||||||
|
field=models.ForeignKey(
|
||||||
|
blank=True,
|
||||||
|
help_text="If blank, request is not associated with a portfolio.",
|
||||||
|
null=True,
|
||||||
|
on_delete=django.db.models.deletion.PROTECT,
|
||||||
|
related_name="DomainRequest_portfolio",
|
||||||
|
to="registrar.portfolio",
|
||||||
|
),
|
||||||
|
),
|
||||||
|
migrations.AlterField(
|
||||||
|
model_name="domainrequest",
|
||||||
|
name="sub_organization",
|
||||||
|
field=models.ForeignKey(
|
||||||
|
blank=True,
|
||||||
|
help_text="If blank, request is associated with the overarching organization for this portfolio.",
|
||||||
|
null=True,
|
||||||
|
on_delete=django.db.models.deletion.PROTECT,
|
||||||
|
related_name="request_sub_organization",
|
||||||
|
to="registrar.suborganization",
|
||||||
|
verbose_name="Suborganization",
|
||||||
|
),
|
||||||
|
),
|
||||||
|
]
|
|
@ -63,7 +63,7 @@ class DomainInformation(TimeStampedModel):
|
||||||
null=True,
|
null=True,
|
||||||
blank=True,
|
blank=True,
|
||||||
related_name="information_portfolio",
|
related_name="information_portfolio",
|
||||||
help_text="Portfolio associated with this domain",
|
help_text="If blank, domain is not associated with a portfolio.",
|
||||||
)
|
)
|
||||||
|
|
||||||
sub_organization = models.ForeignKey(
|
sub_organization = models.ForeignKey(
|
||||||
|
@ -72,7 +72,8 @@ class DomainInformation(TimeStampedModel):
|
||||||
null=True,
|
null=True,
|
||||||
blank=True,
|
blank=True,
|
||||||
related_name="information_sub_organization",
|
related_name="information_sub_organization",
|
||||||
help_text="The suborganization that this domain is included under",
|
help_text="If blank, domain is associated with the overarching organization for this portfolio.",
|
||||||
|
verbose_name="Suborganization",
|
||||||
)
|
)
|
||||||
|
|
||||||
domain_request = models.OneToOneField(
|
domain_request = models.OneToOneField(
|
||||||
|
|
|
@ -327,7 +327,7 @@ class DomainRequest(TimeStampedModel):
|
||||||
null=True,
|
null=True,
|
||||||
blank=True,
|
blank=True,
|
||||||
related_name="DomainRequest_portfolio",
|
related_name="DomainRequest_portfolio",
|
||||||
help_text="Portfolio associated with this domain request",
|
help_text="If blank, request is not associated with a portfolio.",
|
||||||
)
|
)
|
||||||
|
|
||||||
sub_organization = models.ForeignKey(
|
sub_organization = models.ForeignKey(
|
||||||
|
@ -336,7 +336,8 @@ class DomainRequest(TimeStampedModel):
|
||||||
null=True,
|
null=True,
|
||||||
blank=True,
|
blank=True,
|
||||||
related_name="request_sub_organization",
|
related_name="request_sub_organization",
|
||||||
help_text="The suborganization that this domain request is included under",
|
help_text="If blank, request is associated with the overarching organization for this portfolio.",
|
||||||
|
verbose_name="Suborganization",
|
||||||
)
|
)
|
||||||
|
|
||||||
# This is the domain request user who created this domain request.
|
# This is the domain request user who created this domain request.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue