diff --git a/core/models.py b/core/models.py index 157f223d..b523c07c 100755 --- a/core/models.py +++ b/core/models.py @@ -809,6 +809,19 @@ class Campaign(models.Model): except Offer.DoesNotExist: return None + @property + def ask_money(self): + # true if there's an offer asking for money + if self.type is REWARDS: + return True + try: + Offer.objects.get(work=self.work, active=True, price__gt=0.00) + return True + except Offer.DoesNotExist: + return False + except Offer.MultipleObjectsReturned: + return True + @property def days_per_copy(self): if self.individual_offer: diff --git a/frontend/templates/download.html b/frontend/templates/download.html index 0114760a..591ff32c 100644 --- a/frontend/templates/download.html +++ b/frontend/templates/download.html @@ -23,25 +23,32 @@ $j(document).ready(function() {
ebook files for this work need to be loaded!
{% endif %} -Enter a suggested per/copy contribution for each user type. You may change these numbers after the campaign has begun. Don't suggest contributions between $0.00 and $1.00, because these won't be processed.
+Enter a suggested per/copy contribution for each user type. You may change these numbers after the campaign has begun. Don't suggest contributions between $0.00 and $1.00, because these won't be processed. If you enter $0 for BOTH, then no contribution form will be displayed.