From fee74bb218d3c67e78278ef845568c8bebfa8d45 Mon Sep 17 00:00:00 2001
From: Todd Dembrey <todd.dembrey@torchbox.com>
Date: Mon, 3 Sep 2018 09:36:01 +0100
Subject: [PATCH] Make the lab is_open check the lab_link for is_open

---
 opentech/public/funds/models.py | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/opentech/public/funds/models.py b/opentech/public/funds/models.py
index ce7c61b4b..164e3cd03 100644
--- a/opentech/public/funds/models.py
+++ b/opentech/public/funds/models.py
@@ -176,7 +176,10 @@ class LabPage(BasePage):
 
     @property
     def is_open(self):
-        return bool(self.lab_type.specific.open_round)
+        try:
+            return bool(self.lab_type.specific.open_round)
+        except AttributeError:
+            return bool(self.lab_link)
 
     def clean(self):
         if self.lab_type and self.lab_link:
-- 
GitLab