diff --git a/awx/api/serializers.py b/awx/api/serializers.py index ff5a47fe87..3ce740134e 100644 --- a/awx/api/serializers.py +++ b/awx/api/serializers.py @@ -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):