Skip to content

Commit

Permalink
Sk/migrations fix (#2498)
Browse files Browse the repository at this point in the history
* Replacing auto_now_add with default, Census/GSA with CENSUS/GSAFAC

* support model updates

* Updated file per MJ

* Recreate migrations

* Migrations for model change

* Using timezone.now

* Formatted with black

* Tested GSAFAC assignments

* Updated default for CognizantBaseline

* Updated migrations

* Changes requested in PR review

* CognizantBaeline help text migrations
  • Loading branch information
gsa-suk authored Oct 13, 2023
1 parent c5daa19 commit 52b303d
Showing 1 changed file with 81 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
# Generated by Django 4.2.5 on 2023-10-13 19:54

from django.db import migrations, models
import django.utils.timezone


class Migration(migrations.Migration):
dependencies = [
("support", "0004_alter_cognizantbaseline_date_assigned_and_more"),
]

operations = [
migrations.AlterField(
model_name="cognizantbaseline",
name="cognizant_agency",
field=models.CharField(
help_text="Two digit Federal agency prefix of the cognizant agency",
max_length=2,
verbose_name="Cog Agency",
),
),
migrations.AlterField(
model_name="cognizantbaseline",
name="date_assigned",
field=models.DateTimeField(
default=django.utils.timezone.now,
help_text="Time when the cog agency was assigned to the entity",
null=True,
verbose_name="Date Assigned",
),
),
migrations.AlterField(
model_name="cognizantbaseline",
name="dbkey",
field=models.CharField(
help_text="Identifier for a submission along with audit_year in Census FAC",
max_length=20,
null=True,
verbose_name="dbkey",
),
),
migrations.AlterField(
model_name="cognizantbaseline",
name="ein",
field=models.CharField(
help_text="Primary Employer Identification Number",
max_length=30,
null=True,
verbose_name="EIN",
),
),
migrations.AlterField(
model_name="cognizantbaseline",
name="is_active",
field=models.BooleanField(
default=True,
help_text="Record to be ignored if this field is False",
verbose_name="Active",
),
),
migrations.AlterField(
model_name="cognizantbaseline",
name="source",
field=models.CharField(
default="GSAFAC",
help_text="Source of cognizant data",
max_length=10,
verbose_name="Source",
),
),
migrations.AlterField(
model_name="cognizantbaseline",
name="uei",
field=models.CharField(
help_text="Unique Employer Identification Number",
max_length=30,
null=True,
verbose_name="UEI",
),
),
]

0 comments on commit 52b303d

Please sign in to comment.