diff gpp/forums/models.py @ 232:a46788862737

Implement a forum favorites feature for #82
author Brian Neal <bgneal@gmail.com>
date Sun, 01 Aug 2010 21:26:12 +0000
parents 405468b8e3b9
children dcc929973bba
line wrap: on
line diff
--- a/gpp/forums/models.py	Wed Jul 14 02:35:39 2010 +0000
+++ b/gpp/forums/models.py	Sun Aug 01 21:26:12 2010 +0000
@@ -174,6 +174,8 @@
     locked = models.BooleanField(blank=True, default=False)
     subscribers = models.ManyToManyField(User, related_name='subscriptions',
             verbose_name='subscribers', blank=True)
+    bookmarkers = models.ManyToManyField(User, related_name='favorite_topics',
+            verbose_name='bookmarkers', blank=True)
 
     # denormalized fields to reduce database hits
     post_count = models.IntegerField(blank=True, default=0)