From 5a6708a04212ec61ca7e55bd2a0ababbbfecca51 Mon Sep 17 00:00:00 2001 From: mp-strachan <26296076+mp-strachan@users.noreply.github.com> Date: Fri, 21 Jun 2024 21:31:07 +1000 Subject: [PATCH] Fix non null field 'description' (#7488) Fix typo in migration '0026_auto_20240422_1301.py' to resolve error: `TypeError: LabelTemplate() got unexpected keyword arguments: 'decription'` --- .../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 e1ce0fbd69..0e04b915db 100644 --- a/src/backend/InvenTree/report/migrations/0026_auto_20240422_1301.py +++ b/src/backend/InvenTree/report/migrations/0026_auto_20240422_1301.py @@ -36,7 +36,7 @@ def convert_legacy_labels(table_name, model_name, template_model): 'name', 'description', 'label', 'enabled', 'height', 'width', 'filename_pattern', 'filters' ] - non_null_fields = ['decription', 'filename_pattern', 'filters'] + non_null_fields = ['description', 'filename_pattern', 'filters'] fieldnames = ', '.join(fields)