2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-17 12:35:46 +00:00

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'`
This commit is contained in:
mp-strachan
2024-06-21 21:31:07 +10:00
committed by GitHub
parent edd0680344
commit 5a6708a042

View File

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