diff --git a/backend/audit/intake_to_dissemination.py b/backend/audit/intake_to_dissemination.py index 4edb4a2d5a..e14952e9a7 100644 --- a/backend/audit/intake_to_dissemination.py +++ b/backend/audit/intake_to_dissemination.py @@ -81,7 +81,7 @@ def load_finding_texts(self): finding_text_ = FindingText( report_id=self.report_id, finding_ref_number=entry["reference_number"], - contains_chart_or_table=entry["contains_chart_or_table"] == "Y", + contains_chart_or_table=entry["contains_chart_or_table"], finding_text=entry["text_of_finding"], ) findings_text_objects.append(finding_text_) diff --git a/backend/dissemination/migrations/0004_alter_findingtext_contains_chart_or_table.py b/backend/dissemination/migrations/0004_alter_findingtext_contains_chart_or_table.py new file mode 100644 index 0000000000..c2836c35d9 --- /dev/null +++ b/backend/dissemination/migrations/0004_alter_findingtext_contains_chart_or_table.py @@ -0,0 +1,20 @@ +# Generated by Django 4.2.5 on 2023-10-05 22:49 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + dependencies = [ + ("dissemination", "0003_alter_general_fac_accepted_date"), + ] + + operations = [ + migrations.AlterField( + model_name="findingtext", + name="contains_chart_or_table", + field=models.TextField( + help_text="Census mapping: FINDINGSTEXT, CHARTSTABLES", + verbose_name="Indicates whether or not the text contained charts or tables that could not be entered due to formatting restrictions", + ), + ), + ] diff --git a/backend/dissemination/models.py b/backend/dissemination/models.py index d8cd7aa7dc..b03daa5ac6 100644 --- a/backend/dissemination/models.py +++ b/backend/dissemination/models.py @@ -19,7 +19,7 @@ class FindingText(models.Model): "Finding Reference Number - FK", help_text=docs.finding_ref_nums_findingstext, ) - contains_chart_or_table = models.BooleanField( + contains_chart_or_table = models.TextField( "Indicates whether or not the text contained charts or tables that could not be entered due to formatting restrictions", help_text=docs.charts_tables_findingstext, )