Merge pull request #7068 from AlanCoding/nesting_err

fix double nesting of error message in dictionary
This commit is contained in:
Alan Rominger
2017-07-14 08:52:12 -04:00
committed by GitHub

View File

@@ -1644,9 +1644,8 @@ class InventorySourceSerializer(UnifiedJobTemplateSerializer, InventorySourceOpt
def validate_source(self, value):
if value == '':
raise serializers.ValidationError(
{"source": "Manual inventory sources are created automatically "
"when a group is created in the v1 API."})
raise serializers.ValidationError(_(
"Manual inventory sources are created automatically when a group is created in the v1 API."))
return value
def validate(self, attrs):