diff options
author | Leif Johansson <leifj@sunet.se> | 2011-05-13 11:15:05 +0200 |
---|---|---|
committer | Leif Johansson <leifj@sunet.se> | 2011-05-13 11:15:05 +0200 |
commit | 3b80bf37445404bed158f45daf240aaa5599453e (patch) | |
tree | e28be7366a2296c2d57c70d57972232b426d2f39 | |
parent | 4980ba10d82d962b2c82f9c7db13579be0bc1cc3 (diff) |
add a permalink that can be used as a guid for feeds for instance
-rw-r--r-- | src/meetingtools/apps/room/models.py | 3 |
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: |