From 3b80bf37445404bed158f45daf240aaa5599453e Mon Sep 17 00:00:00 2001 From: Leif Johansson Date: Fri, 13 May 2011 11:15:05 +0200 Subject: add a permalink that can be used as a guid for feeds for instance --- src/meetingtools/apps/room/models.py | 3 +++ 1 file changed, 3 insertions(+) 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: -- cgit v1.1