Correct get call to use arg properly.

This was just a typo in from previous commit, more or less.
This commit is contained in:
Bradley M. Kuhn 2015-03-08 20:50:42 -07:00
parent 09654a5eac
commit 3b0e6778e1

View file

@ -37,9 +37,9 @@ handler404 = 'conservancy.static.views.handler404'
admin.autodiscover()
def fundgoal_lookup(fundraiser):
def fundgoal_lookup(fundraiser_sought):
try:
return FundraisingGoal.objects.get(fundraiser_code_name)
return FundraisingGoal.objects.get(fundraiser_code_name=fundraiser_sought)
except FundraisingGoal.DoesNotExist:
# we have no object! do something
return None