mirror of
https://github.com/inventree/InvenTree.git
synced 2026-01-12 09:20:33 -06:00
Check for empty column name in data importer
Ref: https://github.com/inventree/InvenTree/issues/2940
This commit is contained in:
@@ -421,7 +421,10 @@ class DataFileUploadSerializer(serializers.Serializer):
|
||||
- Fuzzy match
|
||||
"""
|
||||
|
||||
column_name = column_name.strip()
|
||||
if not column_name:
|
||||
return None
|
||||
|
||||
column_name = str(column_name).strip()
|
||||
|
||||
column_name_lower = column_name.lower()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user