Correct lookup of attribute.

This commit is contained in:
Bradley M. Kuhn 2015-05-09 17:33:51 -07:00
parent 4d4f520900
commit 97ab9c7541

View file

@ -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)