diff --git a/opentech/public/funds/models.py b/opentech/public/funds/models.py index 1f0ccf9abad62e845251493aa19f781944eb666a..91d6c118aef8a7cb9bc372fcc84ed958503d24f3 100644 --- a/opentech/public/funds/models.py +++ b/opentech/public/funds/models.py @@ -48,7 +48,7 @@ class FundPage(BasePage): ] @property - def has_open(self): + def is_open(self): return bool(self.fund_type.specific.open_round) @property diff --git a/opentech/public/funds/templates/public_funds/includes/fund_apply_cta.html b/opentech/public/funds/templates/public_funds/includes/fund_apply_cta.html index 36033e8fec5901026951c7fb6cbe4079d5683228..b76d9adac020f2eed829b81d4cdd319f1023d929 100644 --- a/opentech/public/funds/templates/public_funds/includes/fund_apply_cta.html +++ b/opentech/public/funds/templates/public_funds/includes/fund_apply_cta.html @@ -2,7 +2,7 @@ <div class="wrapper wrapper--flex"> <div class="section section--apply-cta"> - {% if fund_page.has_open %} + {% if fund_page.is_open %} {% if fund_page.deadline %} <div class="deadline"> {% trans "Next deadline" %}: {{ fund_page.deadline|date:"M j, Y" }}