From 30b1a3d23ddf3b570c17b777240924346e1ce7ad Mon Sep 17 00:00:00 2001 From: "Bradley M. Kuhn" Date: Sat, 9 May 2015 17:34:49 -0700 Subject: [PATCH] Correct attr in lookup as well. --- www/conservancy/apps/fundgoal/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/conservancy/apps/fundgoal/views.py b/www/conservancy/apps/fundgoal/views.py index 3f43241b..7fef82dc 100644 --- a/www/conservancy/apps/fundgoal/views.py +++ b/www/conservancy/apps/fundgoal/views.py @@ -17,7 +17,7 @@ def view(request): codeName = fundGoal.fundraiser_code_name returnDict[codeName] = {} for kk in keysForJSON: - if hasattr(codeName, kk): + if hasattr(fundGoal, kk): returnDict[codeName][kk] = getattr(fundGoal, kk) return JsonResponse( returnDict)