X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/a9b45b86d91d95987e15f5113695d7c27e6d66a2..4cbcf8cac5e8cad592d9d84d76408249ccca8112:/src/club/models.py diff --git a/src/club/models.py b/src/club/models.py index 676669497..8fe3e4798 100644 --- a/src/club/models.py +++ b/src/club/models.py @@ -73,6 +73,11 @@ class Club(models.Model): amounts = self.monthlyamount_set if monthly else self.singleamount_set amount = amounts.all().filter(amount__lte=amount).last() return amount.description if amount is not None else '' + + @property + def paypal_enabled(self): + print("ENABLED?", settings.PAYPAL_ENABLED) + return settings.PAYPAL_ENABLED class SingleAmount(models.Model):