Correct get call to use arg properly.
This was just a typo in from previous commit, more or less.
This commit is contained in:
parent
09654a5eac
commit
3b0e6778e1
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue