diff options
Diffstat (limited to 'src/meetingtools/apps/room/models.py')
-rw-r--r-- | src/meetingtools/apps/room/models.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/meetingtools/apps/room/models.py b/src/meetingtools/apps/room/models.py index b49925a..82aae6a 100644 --- a/src/meetingtools/apps/room/models.py +++ b/src/meetingtools/apps/room/models.py @@ -27,6 +27,7 @@ class Room(models.Model): folder_sco_id = IntegerField(verbose_name="Adobe Connect Room Folder",editable=False) description = TextField(blank=True,null=True) user_count = IntegerField(verbose_name="User Count At Last Visit",editable=False,blank=True,null=True) + host_count = IntegerField(verbose_name="Host Count At Last Visit",editable=False,blank=True,null=True) timecreated = models.DateTimeField(auto_now_add=True) lastupdated = models.DateTimeField(auto_now=True) lastvisited = models.DateTimeField(blank=True,null=True) @@ -61,6 +62,12 @@ class Room(models.Model): else: return self.user_count + def nhosts(self): + if self.host_count == None: + return "unknown many" + else: + return self.host_count + tagging.register(Room) def _magic_tags(sender,**kwargs): |