Add Environment property is_pending back because it is used in the UI to display the "Pending Creation" tag

This commit is contained in:
leigh-mil
2020-02-06 11:03:04 -05:00
parent 406c2af811
commit 2c8f4eeaa0
3 changed files with 6 additions and 1 deletions

View File

@@ -61,6 +61,10 @@ class Environment(
def portfolio_id(self):
return self.application.portfolio_id
@property
def is_pending(self):
return self.cloud_id is None
def __repr__(self):
return "<Environment(name='{}', num_users='{}', application='{}', portfolio='{}', id='{}')>".format(
self.name,