mirror of
https://github.com/inventree/InvenTree.git
synced 2026-10-04 09:25:21 +00:00
1 parent
946390a4a3
commit
db7632ecb9
1 file changed
+1
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user