From 1388ad4cc06229dcaaa12e2434eaf5b4eccb0936 Mon Sep 17 00:00:00 2001 From: Matthew Jones Date: Tue, 19 Nov 2013 19:50:11 -0500 Subject: [PATCH] Fix issue AC-677, field is referenced incorrectly causing exception --- awx/main/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"