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:
zandercymatics 2024-10-29 13:01:38 -06:00 committed by GitHub
commit ab6f66f083
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 33 additions and 3 deletions

View file

@ -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,
),
),
]

View file

@ -13,15 +13,15 @@ class FederalAgency(TimeStampedModel):
agency = models.CharField(
null=True,
blank=True,
help_text="Federal agency",
blank=False,
verbose_name="Federal agency",
)
federal_type = models.CharField(
max_length=20,
choices=BranchChoices.choices,
null=True,
blank=True,
blank=False,
)
acronym = models.CharField(