Mercurial > public > sg101
comparison gpp/bio/models.py @ 120:f8f4514b806a
Added a 24-hour time preference flag in the user profile. Added forum template tags for showing forum dates/times adjusted for the user's time zone.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Sun, 25 Oct 2009 21:55:28 +0000 |
parents | 93d9e74a471e |
children | 9c18250972d5 |
comparison
equal
deleted
inserted
replaced
119:b8f1dcc9fae4 | 120:f8f4514b806a |
---|---|
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 use_24_time = models.BooleanField(default=False) | |
39 forum_post_count = models.IntegerField(default=0) | 40 forum_post_count = models.IntegerField(default=0) |
40 | 41 |
41 def __unicode__(self): | 42 def __unicode__(self): |
42 return self.user.username | 43 return self.user.username |
43 | 44 |