Add Model.project property

This commit is contained in:
allegroai 2022-04-13 14:13:58 +03:00
parent a9774c3842
commit 681d75a309

View File

@ -345,6 +345,14 @@ class Model(IdObjectBase, AsyncManagerMixin, _StorageUriMixin):
# no name is yet specified # no name is yet specified
return None return None
@property
def project(self):
try:
return self.data.project
except ValueError:
# no project is yet specified
return None
@property @property
def comment(self): def comment(self):
try: try: