diff options
author | Leif Johansson <leifj@sunet.se> | 2011-05-11 15:15:28 +0200 |
---|---|---|
committer | Leif Johansson <leifj@sunet.se> | 2011-05-11 15:15:28 +0200 |
commit | 0b522db9154375916dcd62d7ad33b55d4bb77b3e (patch) | |
tree | d9da234b7ba7442b3f6612148f04aa54a853ca6f /src/meetingtools/apps | |
parent | c7030b1d9966c88a166559f2e2e87d3d8afd0f20 (diff) |
nusers method for use in templates
Diffstat (limited to 'src/meetingtools/apps')
-rw-r--r-- | src/meetingtools/apps/room/models.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/meetingtools/apps/room/models.py b/src/meetingtools/apps/room/models.py index 00f54b4..edb2a6e 100644 --- a/src/meetingtools/apps/room/models.py +++ b/src/meetingtools/apps/room/models.py @@ -41,8 +41,8 @@ class Room(models.Model): return int(time.mktime(self.lastvisited.timetuple())*1000) def nusers(self): - if not self.user_count: - return "unknown" + if self.user_count == None: + return "unknown many" else: return self.user_count |