From 97ab9c754157bfc7c303fa3945d494ea2c9b62ab Mon Sep 17 00:00:00 2001 From: "Bradley M. Kuhn" Date: Sat, 9 May 2015 17:33:51 -0700 Subject: [PATCH] Correct lookup of attribute. --- 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 5ad7ca5c..3f43241b 100644 --- a/www/conservancy/apps/fundgoal/views.py +++ b/www/conservancy/apps/fundgoal/views.py @@ -18,6 +18,6 @@ def view(request): returnDict[codeName] = {} for kk in keysForJSON: if hasattr(codeName, kk): - returnDict[codeName][kk] = getattr(codeName, kk) + returnDict[codeName][kk] = getattr(fundGoal, kk) return JsonResponse( returnDict)