AC-581 group and inventory fields on inventory source are now readonly.

This commit is contained in:
Chris Church
2013-10-21 23:16:01 -04:00
parent 44a2bd72bd
commit c585227df8

View File

@@ -643,6 +643,7 @@ class InventorySourceSerializer(BaseSerializer):
'source_regions', 'source_tags', 'overwrite', 'source_regions', 'source_tags', 'overwrite',
'overwrite_vars', 'update_on_launch', 'update_interval', 'overwrite_vars', 'update_on_launch', 'update_interval',
'last_update_failed', 'status', 'last_updated') 'last_update_failed', 'status', 'last_updated')
read_only_fields = ('inventory', 'group')
def to_native(self, obj): def to_native(self, obj):
ret = super(InventorySourceSerializer, self).to_native(obj) ret = super(InventorySourceSerializer, self).to_native(obj)