diff --git a/caravel/models.py b/caravel/models.py index 459750bcf3bbe..05b334a6b21b5 100644 --- a/caravel/models.py +++ b/caravel/models.py @@ -188,7 +188,9 @@ def get_datasource(self): @renders('datasource_name') def datasource_link(self): - return self.datasource.link + datasource = self.datasource + if datasource: + return self.datasource.link @property def datasource_edit_url(self):