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()