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() {