Skip to content

Commit

Permalink
Set default corrected_data property on DataCell to None.
Browse files Browse the repository at this point in the history
  • Loading branch information
JSv4 committed Nov 3, 2024
1 parent ebeeb74 commit 0bccb8a
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,6 @@ interface ExtractCellEditorProps {
extractIsList: boolean;
}

interface JsonEdit {
updated_src: any;
// You can add other properties if needed
}

export const ExtractCellEditor: React.FC<ExtractCellEditorProps> = ({
row,
column,
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Generated by Django 4.2.16 on 2024-11-03 21:06

from django.db import migrations
import opencontractserver.shared.fields


class Migration(migrations.Migration):

dependencies = [
("extracts", "0014_extract_corpus_action"),
]

operations = [
migrations.AlterField(
model_name="datacell",
name="corrected_data",
field=opencontractserver.shared.fields.NullableJSONField(
blank=True, default=None, null=True
),
),
]
2 changes: 1 addition & 1 deletion opencontractserver/extracts/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ class Datacell(BaseOCModel):
related_name="rejected_cells",
)
corrected_data = NullableJSONField(
default=jsonfield_default_value, null=True, blank=True
default=None, null=True, blank=True
)

class Meta:
Expand Down

0 comments on commit 0bccb8a

Please sign in to comment.