From 92d0719ae50c949e1512e486f49db636c07b3633 Mon Sep 17 00:00:00 2001 From: Todd Dembrey <todd.dembrey@torchbox.com> Date: Tue, 23 Jan 2018 22:25:39 +0000 Subject: [PATCH] Change the open round check to be better --- opentech/public/funds/models.py | 2 +- .../funds/templates/public_funds/includes/fund_apply_cta.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/opentech/public/funds/models.py b/opentech/public/funds/models.py index 1f0ccf9ab..91d6c118a 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 36033e8fe..b76d9adac 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" }} -- GitLab