Correct lookup of attribute.
This commit is contained in:
parent
4d4f520900
commit
97ab9c7541
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue