1
0
mirror of https://github.com/ansible/awx.git synced 2024-11-02 18:21:12 +03:00

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',
'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)