diff --git a/awx/api/serializers.py b/awx/api/serializers.py index 5606f100e9..6a94879a61 100644 --- a/awx/api/serializers.py +++ b/awx/api/serializers.py @@ -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)