Changeset - 97ab9c754157
[Not reviewed]
0 1 0
Bradley Kuhn (bkuhn) - 9 years ago 2015-05-10 00:33:51
bkuhn@ebb.org
Correct lookup of attribute.
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
www/conservancy/apps/fundgoal/views.py
Show inline comments
...
 
@@ -15,9 +15,9 @@ def view(request):
 
    returnDict = {}
 
    for fundGoal in FundraisingGoal.objects.filter(fundraiser_code_name__in=codeNames):
 
        codeName = fundGoal.fundraiser_code_name
 
        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)
0 comments (0 inline, 0 general)