summaryrefslogtreecommitdiff
path: root/releng
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@sbcglobal.net>2015-04-15 22:03:47 -0400
committerLuke Shumaker <lukeshu@sbcglobal.net>2015-04-15 22:03:47 -0400
commit3c640cb94438dda317198843f5b498306a2bf989 (patch)
tree67ce7dc393383d5205a9e1fa56db3aa9ff18d893 /releng
parent2ea4e6f4d5245dd5e43c90d54635477c6e7dd6a7 (diff)
parent1a2709552704a91f9601a13c350153b3daf3a455 (diff)
Merge tag 'release_2014-12-08' into archweb-generic
Minor fixes and package updates
Diffstat (limited to 'releng')
-rw-r--r--releng/models.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/releng/models.py b/releng/models.py
index 2f9216bd..a4af81ab 100644
--- a/releng/models.py
+++ b/releng/models.py
@@ -2,7 +2,6 @@ from base64 import b64decode
from bencode import bdecode, bencode
from datetime import datetime
import hashlib
-import markdown
from pytz import utc
from django.conf import settings
@@ -12,7 +11,7 @@ from django.db.models.signals import pre_save
from django.utils.safestring import mark_safe
from main.fields import PositiveBigIntegerField
-from main.utils import set_created_field
+from main.utils import set_created_field, parse_markdown
class IsoOption(models.Model):
@@ -154,8 +153,7 @@ class Release(models.Model):
return "magnet:?%s" % '&'.join(['%s=%s' % (k, v) for k, v in query])
def info_html(self):
- return mark_safe(markdown.markdown(
- self.info, safe_mode=True, enable_attributes=False))
+ return mark_safe(parse_markdown(self.info))
def torrent(self):
try: