Add has_description property to experiment model
@@ -116,6 +116,10 @@ class Experiment(DiffModel, DescribableModel, LastStatusMixin):
return '{}.{}'.format(self.experiment_group.unique_name, self.sequence)
return '{}.{}'.format(self.project.unique_name, self.sequence)
+ @property
+ def has_description(self):
+ return self.description is not None
+
@cached_property
def specification(self):
return ExperimentSpecification(values=self.config) if self.config else None
