Use Environment.num_users in projects template

This commit is contained in:
richard-dds
2018-09-06 14:01:02 -04:00
parent 3edbfa3129
commit a69d6b2e1c
3 changed files with 8 additions and 2 deletions

View File

@@ -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)