fix bug found by luc

pull/1/head
eric 2013-08-22 16:12:27 -04:00
parent 1c33c34f21
commit cbc34db3d7
1 changed files with 1 additions and 0 deletions

View File

@ -1132,6 +1132,7 @@ class PurchaseView(PledgeView):
def get_preapproval_amount(self):
offer_id = self.request.REQUEST.get('offer_id', None)
preapproval_amount = None
if offer_id != None:
try:
preapproval_amount = D(models.Offer.objects.get(id=offer_id).price)