mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-08-05 09:21:54 +02:00
Add migrations
This commit is contained in:
parent
279fca4979
commit
f2b3356859
2 changed files with 36 additions and 0 deletions
|
@ -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),
|
||||
),
|
||||
]
|
|
@ -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}"
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue