summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/meetingtools/apps/room/models.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/meetingtools/apps/room/models.py b/src/meetingtools/apps/room/models.py
index edb2a6e..8bed373 100644
--- a/src/meetingtools/apps/room/models.py
+++ b/src/meetingtools/apps/room/models.py
@@ -12,6 +12,7 @@ from django.contrib.auth.models import User
from meetingtools.apps.cluster.models import ACCluster
import time
import tagging
+from meetingtools.settings import BASE_URL
class Room(models.Model):
creator = ForeignKey(User,editable=False)
@@ -40,6 +41,12 @@ class Room(models.Model):
else:
return int(time.mktime(self.lastvisited.timetuple())*1000)
+ def go_url(self):
+ return "%s/go/%s" % (BASE_URL,self.urlpath)
+
+ def go_url_internal(self):
+ return "%s/go/%d" % (BASE_URL,self.id)
+
def nusers(self):
if self.user_count == None:
return "unknown many"