Use Environment.num_users in projects template
This commit is contained in:
@@ -18,3 +18,7 @@ class Environment(Base, TimestampsMixin):
|
||||
@property
|
||||
def users(self):
|
||||
return [r.user for r in self.roles]
|
||||
|
||||
@property
|
||||
def num_users(self):
|
||||
return len(self.users)
|
||||
|
Reference in New Issue
Block a user