Mercurial > public > sg101
diff gpp/bio/models.py @ 390:e0523e17ea43
Fixing #175; add an auto-subscribe and auto-favorite forum topic feature. Added 2 flags to the user profile. Added 2 functions that are called on the post post-save signal that auto-favorite and auto-subscribe the post creator if they have requested this service.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Mon, 21 Mar 2011 00:39:52 +0000 |
parents | 9d470c7a2b93 |
children | 4e891919c63f |
line wrap: on
line diff
--- a/gpp/bio/models.py Sun Mar 20 20:23:29 2011 +0000 +++ b/gpp/bio/models.py Mon Mar 21 00:39:52 2011 +0000 @@ -92,6 +92,8 @@ status_date = models.DateTimeField(auto_now_add=True) badges = models.ManyToManyField(Badge, through="BadgeOwnership") update_date = models.DateTimeField(db_index=True, blank=True) + auto_favorite = models.BooleanField(default=False) + auto_subscribe = models.BooleanField(default=False) def __unicode__(self): return self.user.username