mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
fix string concat
This commit is contained in:
parent
08a5779c35
commit
0baffcaee5
@ -620,7 +620,7 @@ class DataFileExtractSerializer(serializers.Serializer):
|
||||
# Check for missing required columns
|
||||
if required:
|
||||
if name not in self.columns:
|
||||
raise serializers.ValidationError(_("Missing required column") + f": '{name}'")
|
||||
raise serializers.ValidationError(_("Missing required column: '{name}'"))
|
||||
|
||||
for col in self.columns:
|
||||
|
||||
@ -629,7 +629,7 @@ class DataFileExtractSerializer(serializers.Serializer):
|
||||
|
||||
# Check for duplicated columns
|
||||
if col in cols_seen:
|
||||
raise serializers.ValidationError(_("Duplicate column") + f": '{col}'")
|
||||
raise serializers.ValidationError(_("Duplicate column: '{col}'"))
|
||||
|
||||
cols_seen.add(col)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user