diff --git a/awx/main/utils.py b/awx/main/utils.py index 9a26ec8e2e..fc5005ff12 100644 --- a/awx/main/utils.py +++ b/awx/main/utils.py @@ -270,7 +270,7 @@ def model_to_dict(obj): attr_d = {} for field in obj._meta.fields: # FIXME: This needs to be aware of fields not to be included in the AS delta log - if field not in Credential.PASSWORD_FIELDS: + if field.name not in Credential.PASSWORD_FIELDS: attr_d[field.name] = str(getattr(obj, field.name, None)) else: attr_d[field.name] = "hidden"