Skip to content

Commit

Permalink
don't expect bool from findings contains chart or table (#2426)
Browse files Browse the repository at this point in the history
  • Loading branch information
danswick authored Oct 5, 2023
1 parent 292e55d commit cf254bd
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 2 deletions.
2 changes: 1 addition & 1 deletion backend/audit/intake_to_dissemination.py
Original file line number Diff line number Diff line change
Expand Up @@ -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_)
Expand Down
Original file line number Diff line number Diff line change
@@ -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",
),
),
]
2 changes: 1 addition & 1 deletion backend/dissemination/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
)
Expand Down

0 comments on commit cf254bd

Please sign in to comment.