summaryrefslogtreecommitdiff
path: root/releng
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2014-12-08 19:52:55 -0600
committerDan McGee <dan@archlinux.org>2014-12-08 19:52:55 -0600
commit60327d96a687669d8b8842ecf0ac16c11a8f6483 (patch)
treefe8f5a15f994fd21251bcd9dd41f62e76a7958ad /releng
parent9faa6d580e73adfe0f3a194b09d7f6b91b80aae9 (diff)
Upgrade to python-markdown 2.5.2
safe_mode is now deprecated, so adjust things accordingly. Signed-off-by: Dan McGee <dan@archlinux.org>
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 436308f2..c1a82589 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: