1
0
mirror of https://github.com/ansible/awx.git synced 2024-10-31 15:21:13 +03:00

Merge pull request #393 from jangsutsr/7587_remove_cred_type_id_in_api_v1

Remove credential_type_id in API v1
This commit is contained in:
Ryan Petrello 2017-09-11 08:22:10 -07:00 committed by GitHub
commit e5043093eb

View File

@ -343,6 +343,8 @@ class BaseSerializer(serializers.ModelSerializer):
continue
summary_fields[fk] = OrderedDict()
for field in related_fields:
if field == 'credential_type_id' and fk == 'credential' and self.version < 2: # TODO: remove version check in 3.3
continue
fval = getattr(fkval, field, None)