Mercurial > public > sg101
comparison gpp/bio/models.py @ 282:39664e661c69
Bug fix on r299 (#129).
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Mon, 04 Oct 2010 00:56:54 +0000 |
parents | d424b8bae71d |
children | 4d086d2210b9 |
comparison
equal
deleted
inserted
replaced
281:d9e01b36b761 | 282:39664e661c69 |
---|---|
98 | 98 |
99 class Meta: | 99 class Meta: |
100 ordering = ('user__username', ) | 100 ordering = ('user__username', ) |
101 | 101 |
102 def save(self, *args, **kwargs): | 102 def save(self, *args, **kwargs): |
103 update_date = datetime.datetime.now() | 103 self.update_date = datetime.datetime.now() |
104 sm = SiteMarkup() | 104 sm = SiteMarkup() |
105 self.profile_html = sm.convert(self.profile_text) | 105 self.profile_html = sm.convert(self.profile_text) |
106 self.signature_html = sm.convert(self.signature) | 106 self.signature_html = sm.convert(self.signature) |
107 super(UserProfile, self).save(*args, **kwargs) | 107 super(UserProfile, self).save(*args, **kwargs) |
108 cache.delete('avatar_' + self.user.username) | 108 cache.delete('avatar_' + self.user.username) |