summaryrefslogtreecommitdiff
path: root/templates/news
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2012-10-26 17:36:12 -0500
committerDan McGee <dan@archlinux.org>2012-10-26 17:36:12 -0500
commit62bb3db8ada68a22c7a58f32b2e6bed63f19e53c (patch)
treef2239c8c288f9364527e53bb8a5bf6dde39f67af /templates/news
parentbdee24b9d1279de67dd238e3644c2efff314bd7b (diff)
Remove usages of 'django.contrib.markup'
Switch to the news model being able to spit out the HTML version of the content, and don't use the markup contrib module. This is deprecated as of Django 1.5 so we can move off it now to save trouble down the road when it is fully removed. Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'templates/news')
-rw-r--r--templates/news/view.html3
1 files changed, 1 insertions, 2 deletions
diff --git a/templates/news/view.html b/templates/news/view.html
index b6c06b28..8f49fb1f 100644
--- a/templates/news/view.html
+++ b/templates/news/view.html
@@ -1,5 +1,4 @@
{% extends "base.html" %}
-{% load markup %}
{% block title %}Arch Linux - News: {{ news.title }}{% endblock %}
{% block content %}
@@ -28,6 +27,6 @@
<p class="article-info">{{ news.postdate|date }} - {{ news.author.get_full_name }}</p>
- <div class="article-content" itemprop="articleBody">{{ news.content|markdown:'safe' }}</div>
+ <div class="article-content" itemprop="articleBody">{{ news.html }}</div>
</div>
{% endblock %}