mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-13 06:28:24 +02:00
Regen migrations
This commit is contained in:
parent
909eed5c45
commit
7d36552229
3 changed files with 10 additions and 13 deletions
|
@ -1,4 +1,4 @@
|
||||||
# Generated by Django 4.2.10 on 2024-08-13 20:01
|
# Generated by Django 4.2.10 on 2024-08-14 18:50
|
||||||
|
|
||||||
from django.conf import settings
|
from django.conf import settings
|
||||||
from django.db import migrations, models
|
from django.db import migrations, models
|
||||||
|
@ -12,6 +12,10 @@ class Migration(migrations.Migration):
|
||||||
]
|
]
|
||||||
|
|
||||||
operations = [
|
operations = [
|
||||||
|
migrations.AlterModelOptions(
|
||||||
|
name="portfolio",
|
||||||
|
options={"ordering": ["organization_name"]},
|
||||||
|
),
|
||||||
migrations.AddField(
|
migrations.AddField(
|
||||||
model_name="portfolio",
|
model_name="portfolio",
|
||||||
name="federal_type",
|
name="federal_type",
|
||||||
|
@ -53,15 +57,4 @@ class Migration(migrations.Migration):
|
||||||
to="registrar.portfolio",
|
to="registrar.portfolio",
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
migrations.AlterField(
|
|
||||||
model_name="user",
|
|
||||||
name="portfolio",
|
|
||||||
field=models.ForeignKey(
|
|
||||||
blank=True,
|
|
||||||
null=True,
|
|
||||||
on_delete=django.db.models.deletion.SET_NULL,
|
|
||||||
related_name="portfolio_users",
|
|
||||||
to="registrar.portfolio",
|
|
||||||
),
|
|
||||||
),
|
|
||||||
]
|
]
|
|
@ -13,6 +13,10 @@ class Portfolio(TimeStampedModel):
|
||||||
manageable groups.
|
manageable groups.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
# Addresses the UnorderedObjectListWarning
|
||||||
|
class Meta:
|
||||||
|
ordering = ["organization_name"]
|
||||||
|
|
||||||
# use the short names in Django admin
|
# use the short names in Django admin
|
||||||
OrganizationChoices = DomainRequest.OrganizationChoices
|
OrganizationChoices = DomainRequest.OrganizationChoices
|
||||||
StateTerritoryChoices = DomainRequest.StateTerritoryChoices
|
StateTerritoryChoices = DomainRequest.StateTerritoryChoices
|
||||||
|
|
|
@ -116,7 +116,7 @@ class User(AbstractUser):
|
||||||
"registrar.Portfolio",
|
"registrar.Portfolio",
|
||||||
null=True,
|
null=True,
|
||||||
blank=True,
|
blank=True,
|
||||||
related_name="portfolio_users",
|
related_name="user",
|
||||||
on_delete=models.SET_NULL,
|
on_delete=models.SET_NULL,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue