fix string concat

This commit is contained in:
Matthias 2022-02-20 21:12:20 +01:00
parent 08a5779c35
commit 0baffcaee5
No known key found for this signature in database
GPG Key ID: F50EF5741D33E076

View File

@ -620,7 +620,7 @@ class DataFileExtractSerializer(serializers.Serializer):
# Check for missing required columns # Check for missing required columns
if required: if required:
if name not in self.columns: 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: for col in self.columns:
@ -629,7 +629,7 @@ class DataFileExtractSerializer(serializers.Serializer):
# Check for duplicated columns # Check for duplicated columns
if col in cols_seen: if col in cols_seen:
raise serializers.ValidationError(_("Duplicate column") + f": '{col}'") raise serializers.ValidationError(_("Duplicate column: '{col}'"))
cols_seen.add(col) cols_seen.add(col)