From f1acb6b79db53a0c8cca3c78d6f1c130797009fb Mon Sep 17 00:00:00 2001 From: AlanCoding Date: Fri, 14 Jul 2017 08:01:57 -0400 Subject: [PATCH] fix double nesting of error message in dictionary --- awx/api/serializers.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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):