From 919f182c25d06cff2ac98ab2140cc2b9f1630989 Mon Sep 17 00:00:00 2001 From: Oliver Date: Wed, 10 Nov 2021 11:30:11 +1100 Subject: [PATCH] Remove debug messages --- InvenTree/stock/migrations/0069_auto_20211109_2347.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/InvenTree/stock/migrations/0069_auto_20211109_2347.py b/InvenTree/stock/migrations/0069_auto_20211109_2347.py index 3eaa8c784d..f4cdde7794 100644 --- a/InvenTree/stock/migrations/0069_auto_20211109_2347.py +++ b/InvenTree/stock/migrations/0069_auto_20211109_2347.py @@ -20,7 +20,7 @@ def update_serials(apps, schema_editor): serial = 0 - result = re.match(r"^(\d+)", item.serial or "") + result = re.match(r"^(\d+)", str(item.serial)) if result and len(result.groups()) == 1: try: @@ -30,7 +30,6 @@ def update_serials(apps, schema_editor): item.serial_int = serial - print(item, item.serial, '->', item.serial_int) item.save()