From 0209544a9e59234008f1375b6f3a32e2bd174388 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Bournhonesque?= Date: Thu, 2 Nov 2023 09:52:33 +0100 Subject: [PATCH] fix: fix bounding box field default value value should be null by default instead of being an empty list --- robotoff/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/robotoff/models.py b/robotoff/models.py index b11c5fe940..ff0a5fb330 100644 --- a/robotoff/models.py +++ b/robotoff/models.py @@ -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])