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): def validate_source(self, value):
if value == '': if value == '':
raise serializers.ValidationError( raise serializers.ValidationError(_(
{"source": "Manual inventory sources are created automatically " "Manual inventory sources are created automatically when a group is created in the v1 API."))
"when a group is created in the v1 API."})
return value return value
def validate(self, attrs): def validate(self, attrs):