From c585227df87fc0ceb2e2b6633ce83a1399f6b032 Mon Sep 17 00:00:00 2001 From: Chris Church Date: Mon, 21 Oct 2013 23:16:01 -0400 Subject: [PATCH] AC-581 group and inventory fields on inventory source are now readonly. --- awx/main/serializers.py | 1 + 1 file changed, 1 insertion(+) diff --git a/awx/main/serializers.py b/awx/main/serializers.py index 2615d7521b..fae0ad9491 100644 --- a/awx/main/serializers.py +++ b/awx/main/serializers.py @@ -643,6 +643,7 @@ class InventorySourceSerializer(BaseSerializer): 'source_regions', 'source_tags', 'overwrite', 'overwrite_vars', 'update_on_launch', 'update_interval', 'last_update_failed', 'status', 'last_updated') + read_only_fields = ('inventory', 'group') def to_native(self, obj): ret = super(InventorySourceSerializer, self).to_native(obj)