Mercurial > public > sg101
comparison gpp/bio/models.py @ 96:93d9e74a471e
Forums: added forum post counts for each user in the user profile.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Sun, 13 Sep 2009 18:43:08 +0000 |
parents | c0d3b09c9b95 |
children | f8f4514b806a |
comparison
equal
deleted
inserted
replaced
95:23035afdeae8 | 96:93d9e74a471e |
---|---|
34 signature = models.TextField(blank=True) | 34 signature = models.TextField(blank=True) |
35 signature_html = models.TextField(blank=True) | 35 signature_html = models.TextField(blank=True) |
36 avatar = models.ImageField(upload_to=avatar_file_path, blank=True) | 36 avatar = models.ImageField(upload_to=avatar_file_path, blank=True) |
37 time_zone = models.CharField(max_length=64, blank=True, | 37 time_zone = models.CharField(max_length=64, blank=True, |
38 default='US/Pacific') | 38 default='US/Pacific') |
39 forum_post_count = models.IntegerField(default=0) | |
39 | 40 |
40 def __unicode__(self): | 41 def __unicode__(self): |
41 return self.user.username | 42 return self.user.username |
42 | 43 |
43 class Meta: | 44 class Meta: |