File diff 97ab9c754157 → 30b1a3d23ddf
www/conservancy/apps/fundgoal/views.py
Show inline comments
...
 
@@ -14,10 +14,10 @@ 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):
 
            if hasattr(fundGoal, kk):
 
                returnDict[codeName][kk] = getattr(fundGoal, kk)
 

	
 
    return JsonResponse( returnDict)