comparison 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
comparison
equal deleted inserted replaced
389:3fa61786abf1 390:e0523e17ea43
90 status = models.IntegerField(default=STA_STRANGER, 90 status = models.IntegerField(default=STA_STRANGER,
91 choices=USER_STATUS_CHOICES) 91 choices=USER_STATUS_CHOICES)
92 status_date = models.DateTimeField(auto_now_add=True) 92 status_date = models.DateTimeField(auto_now_add=True)
93 badges = models.ManyToManyField(Badge, through="BadgeOwnership") 93 badges = models.ManyToManyField(Badge, through="BadgeOwnership")
94 update_date = models.DateTimeField(db_index=True, blank=True) 94 update_date = models.DateTimeField(db_index=True, blank=True)
95 auto_favorite = models.BooleanField(default=False)
96 auto_subscribe = models.BooleanField(default=False)
95 97
96 def __unicode__(self): 98 def __unicode__(self):
97 return self.user.username 99 return self.user.username
98 100
99 class Meta: 101 class Meta: