From db7632ecb976558dc3100cf3a288ba4a07af5f16 Mon Sep 17 00:00:00 2001 From: Oliver Date: Mon, 17 Jun 2024 08:16:56 +1000 Subject: [PATCH] Update data migration (#7455) - Handle case with missing data --- .../InvenTree/report/migrations/0026_auto_20240422_1301.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend/InvenTree/report/migrations/0026_auto_20240422_1301.py b/src/backend/InvenTree/report/migrations/0026_auto_20240422_1301.py index 5f7bc8afd1ff..e1ce0fbd6988 100644 --- a/src/backend/InvenTree/report/migrations/0026_auto_20240422_1301.py +++ b/src/backend/InvenTree/report/migrations/0026_auto_20240422_1301.py @@ -59,7 +59,7 @@ def convert_legacy_labels(table_name, model_name, template_model): } for field in non_null_fields: - if data[field] is None: + if data.get(field, None) is None: data[field] = '' # Skip any "builtin" labels