diff gpp/forums/models.py @ 181:500e5875a306

Implementing #61: adding a forum topic subscription feature.
author Brian Neal <bgneal@gmail.com>
date Sun, 28 Mar 2010 01:07:47 +0000
parents 6f14970b103a
children a5fcf3d1b663
line wrap: on
line diff
--- a/gpp/forums/models.py	Sun Mar 21 20:33:33 2010 +0000
+++ b/gpp/forums/models.py	Sun Mar 28 01:07:47 2010 +0000
@@ -172,6 +172,8 @@
     view_count = models.IntegerField(blank=True, default=0)
     sticky = models.BooleanField(blank=True, default=False)
     locked = models.BooleanField(blank=True, default=False)
+    subscribers = models.ManyToManyField(User, related_name='subscriptions',
+            verbose_name='subscribers', blank=True)
 
     # denormalized fields to reduce database hits
     post_count = models.IntegerField(blank=True, default=0)