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