From 0b522db9154375916dcd62d7ad33b55d4bb77b3e Mon Sep 17 00:00:00 2001 From: Leif Johansson Date: Wed, 11 May 2011 15:15:28 +0200 Subject: nusers method for use in templates --- src/meetingtools/apps/room/models.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/meetingtools') 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 -- cgit v1.1