Update project model with property has_description
@@ -40,6 +40,10 @@ class Project(DiffModel, DescribableModel):
def has_code(self):
return hasattr(self, 'repo')
+ @property
+ def has_description(self):
+ return bool(self.description)
+
@property
def tensorboard(self):
if settings.DEPLOY_RUNNER:
