Skip to content

Commit

Permalink
fix: fix bounding box field default value
Browse files Browse the repository at this point in the history
value should be null by default instead of being an empty list
  • Loading branch information
raphael0202 committed Nov 2, 2023
1 parent 2905741 commit 5b78f5d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion robotoff/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ class ProductInsight(BaseModel):
# logo
# - for OCR-based insights, it's the text that triggered the
# creation of the insight
bounding_box = BinaryJSONField(null=True, default=list)
bounding_box = BinaryJSONField(null=True)

def get_product_id(self) -> ProductIdentifier:
return ProductIdentifier(self.barcode, ServerType[self.server_type])
Expand Down

0 comments on commit 5b78f5d

Please sign in to comment.