1
0
mirror of https://github.com/ansible/awx.git synced 2024-10-31 23:51:09 +03:00

Merge pull request #2274 from AlanCoding/absolute_nonsense

Remove brittle condition causing schema to fail
This commit is contained in:
Alan Rominger 2018-06-21 15:44:48 -04:00 committed by GitHub
commit bed4d240af
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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