Mercurial > public > sg101
diff gpp/downloads/models.py @ 128:48621ba5c385
Fixing #36, Smilify doesn't work when a smiley appears first before other text. Refactored the smiley system to produce markdown as well as HTML.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Fri, 20 Nov 2009 01:43:32 +0000 |
parents | 9c18250972d5 |
children | 5c889b587416 |
line wrap: on
line diff
--- a/gpp/downloads/models.py Mon Nov 16 01:00:28 2009 +0000 +++ b/gpp/downloads/models.py Fri Nov 20 01:43:32 2009 +0000 @@ -8,8 +8,7 @@ from django.contrib.auth.models import User from django.template.defaultfilters import filesizeformat -from core.markup import markdown -from smiley import smilify +from core.markup import site_markup class Category(models.Model): @@ -74,7 +73,7 @@ return ('downloads-details', [str(self.id)]) def save(self, force_insert=False, force_update=False): - self.html = smilify(markdown(self.description)) + self.html = site_markup(self.description) super(Download, self).save(force_insert, force_update) def vote(self, vote_value):