Mercurial > public > sg101
comparison gpp/forums/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 | 62af8cd8f57b |
children | 96eec1ed0fd3 |
comparison
equal
deleted
inserted
replaced
95:23035afdeae8 | 96:93d9e74a471e |
---|---|
117 body = models.TextField() | 117 body = models.TextField() |
118 html = models.TextField() | 118 html = models.TextField() |
119 user_ip = models.IPAddressField(blank=True, default='', null=True) | 119 user_ip = models.IPAddressField(blank=True, default='', null=True) |
120 | 120 |
121 class Meta: | 121 class Meta: |
122 ordering = ('creation_date', ) | 122 ordering = ('-creation_date', ) |
123 | 123 |
124 @models.permalink | 124 @models.permalink |
125 def get_absolute_url(self): | 125 def get_absolute_url(self): |
126 return ('forums-goto_post', [self.pk]) | 126 return ('forums-goto_post', [self.pk]) |
127 | 127 |