From 2369d6508e03f07b5322bb181f20e8e08a47f490 Mon Sep 17 00:00:00 2001 From: Andromeda Yelton Date: Tue, 14 Aug 2012 14:32:54 -0400 Subject: [PATCH] include no-premium option in pledgeview --- frontend/views.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/frontend/views.py b/frontend/views.py index ae30b182..a0618ec5 100755 --- a/frontend/views.py +++ b/frontend/views.py @@ -586,7 +586,9 @@ class PledgeView(FormView): if campaign is None or campaign.status != 'ACTIVE': raise Http404 - premiums = campaign.custom_premiums() + custom_premiums = campaign.custom_premiums() + # need to also include the no-premiums default in the queryset we send the page + premiums = custom_premiums | models.Premium.objects.filter(id=150) premium_id = self.request.REQUEST.get('premium_id', None) preapproval_amount = self.request.REQUEST.get('preapproval_amount', None)