mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Merge pull request #2948 from SchrodingersGat/column-extraction-fix
Check for empty column name in data importer
This commit is contained in:
commit
931081cb4f
@ -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()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user