Changeset - f64ff4345072
[Not reviewed]
0 1 0
Bradley Kuhn (bkuhn) - 9 years ago 2015-03-09 06:36:38
bkuhn@ebb.org
Rework to simply call with new kwargs.

Redo call so that I just get my own at call time.
1 file changed with 1 insertions and 2 deletions:
0 comments (0 inline, 0 general)
www/conservancy/static/views.py
Show inline comments
...
 
@@ -45,14 +45,13 @@ def fundgoal_lookup(fundraiser_sought):
 
        return FundraisingGoal.objects.get(fundraiser_code_name=fundraiser_sought)
 
    except FundraisingGoal.DoesNotExist:
 
     # we have no object!  do something
 
        return None
 

	
 
def index_with_fundraiser_data(request, *args, **kwargs):
 
    kwargs['fundgoal'] = fundgoal_lookup(kwargs['fundraiser_sought'])
 
    return index(request, kwargs)
 
    return index(request, { 'fundgoal' : fundgoal_lookup(kwargs['fundraiser_sought']) })
 

	
 
def debug(request):
 
    path = request.get_full_path()
 
    path = path.lstrip('/')
 
    return HttpResponse("Hello, static world: " + path)
 

	
0 comments (0 inline, 0 general)