mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-21 10:16:13 +02:00
Merge pull request #2997 from cisagov/za/2868-admin-federal-agency-updates
#2868: Django admin federal agency page form updates - [BACKUP] - [MIGRATIONS]
This commit is contained in:
commit
ab6f66f083
2 changed files with 33 additions and 3 deletions
|
@ -0,0 +1,30 @@
|
||||||
|
# Generated by Django 4.2.10 on 2024-10-28 16:39
|
||||||
|
|
||||||
|
from django.db import migrations, models
|
||||||
|
|
||||||
|
|
||||||
|
class Migration(migrations.Migration):
|
||||||
|
|
||||||
|
dependencies = [
|
||||||
|
(
|
||||||
|
"registrar",
|
||||||
|
"0134_rename_portfolio_additional_permissions_portfolioinvitation_additional_permissions_and_more",
|
||||||
|
),
|
||||||
|
]
|
||||||
|
|
||||||
|
operations = [
|
||||||
|
migrations.AlterField(
|
||||||
|
model_name="federalagency",
|
||||||
|
name="agency",
|
||||||
|
field=models.CharField(null=True, verbose_name="Federal agency"),
|
||||||
|
),
|
||||||
|
migrations.AlterField(
|
||||||
|
model_name="federalagency",
|
||||||
|
name="federal_type",
|
||||||
|
field=models.CharField(
|
||||||
|
choices=[("executive", "Executive"), ("judicial", "Judicial"), ("legislative", "Legislative")],
|
||||||
|
max_length=20,
|
||||||
|
null=True,
|
||||||
|
),
|
||||||
|
),
|
||||||
|
]
|
|
@ -13,15 +13,15 @@ class FederalAgency(TimeStampedModel):
|
||||||
|
|
||||||
agency = models.CharField(
|
agency = models.CharField(
|
||||||
null=True,
|
null=True,
|
||||||
blank=True,
|
blank=False,
|
||||||
help_text="Federal agency",
|
verbose_name="Federal agency",
|
||||||
)
|
)
|
||||||
|
|
||||||
federal_type = models.CharField(
|
federal_type = models.CharField(
|
||||||
max_length=20,
|
max_length=20,
|
||||||
choices=BranchChoices.choices,
|
choices=BranchChoices.choices,
|
||||||
null=True,
|
null=True,
|
||||||
blank=True,
|
blank=False,
|
||||||
)
|
)
|
||||||
|
|
||||||
acronym = models.CharField(
|
acronym = models.CharField(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue