summaryrefslogtreecommitdiff
path: root/src/meetingtools/apps
diff options
context:
space:
mode:
authorLeif Johansson <leifj@sunet.se>2011-05-13 11:15:05 +0200
committerLeif Johansson <leifj@sunet.se>2011-05-13 11:15:05 +0200
commit3b80bf37445404bed158f45daf240aaa5599453e (patch)
treee28be7366a2296c2d57c70d57972232b426d2f39 /src/meetingtools/apps
parent4980ba10d82d962b2c82f9c7db13579be0bc1cc3 (diff)
add a permalink that can be used as a guid for feeds for instance
Diffstat (limited to 'src/meetingtools/apps')
-rw-r--r--src/meetingtools/apps/room/models.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/meetingtools/apps/room/models.py b/src/meetingtools/apps/room/models.py
index 8bed373..aea4ba3 100644
--- a/src/meetingtools/apps/room/models.py
+++ b/src/meetingtools/apps/room/models.py
@@ -46,6 +46,9 @@ class Room(models.Model):
def go_url_internal(self):
return "%s/go/%d" % (BASE_URL,self.id)
+
+ def permalink(self):
+ return "%s/room/%d" % (BASE_URL,self.id)
def nusers(self):
if self.user_count == None: