Add migrations

This commit is contained in:
zandercymatics 2024-07-26 12:56:30 -06:00
parent 279fca4979
commit f2b3356859
No known key found for this signature in database
GPG key ID: FF4636ABEC9682B7
2 changed files with 36 additions and 0 deletions

View file

@ -0,0 +1,23 @@
# Generated by Django 4.2.10 on 2024-07-26 18:55
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("registrar", "0113_user_portfolio_user_portfolio_additional_permissions_and_more"),
]
operations = [
migrations.AddField(
model_name="federalagency",
name="is_fceb",
field=models.BooleanField(blank=True, null=True, verbose_name="Determines if this agency is FCEB"),
),
migrations.AlterField(
model_name="federalagency",
name="agency",
field=models.CharField(blank=True, help_text="Agency initials", max_length=10, null=True),
),
]

View file

@ -25,6 +25,19 @@ class FederalAgency(TimeStampedModel):
help_text="Federal agency type (executive, judicial, legislative, etc.)",
)
agency = models.CharField(
max_length=10,
null=True,
blank=True,
help_text="Agency initials",
)
is_fceb = models.BooleanField(
null=True,
blank=True,
verbose_name="Determines if this agency is FCEB",
)
def __str__(self) -> str:
return f"{self.agency}"