diff gpp/forums/models.py @ 81:e356ea79a7a2

More work on forums. Committing what we got so far.
author Brian Neal <bgneal@gmail.com>
date Sun, 23 Aug 2009 00:14:52 +0000
parents 374b24dd2f9a
children bc3978f023c2
line wrap: on
line diff
--- a/gpp/forums/models.py	Sun Jul 12 18:25:26 2009 +0000
+++ b/gpp/forums/models.py	Sun Aug 23 00:14:52 2009 +0000
@@ -42,6 +42,10 @@
     def __unicode__(self):
         return self.name
 
+    @models.permalink
+    def get_absolute_url(self):
+        return ('forums-forum_index', [self.slug])
+
     def topic_count_update(self):
         """Call to notify the forum that its topic count has been updated."""
         self.topic_count = Topic.objects.filter(forum=self).count()