diff options
author | Dan McGee <dan@archlinux.org> | 2012-10-26 17:36:12 -0500 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2012-10-26 17:36:12 -0500 |
commit | 62bb3db8ada68a22c7a58f32b2e6bed63f19e53c (patch) | |
tree | f2239c8c288f9364527e53bb8a5bf6dde39f67af /news/views.py | |
parent | bdee24b9d1279de67dd238e3644c2efff314bd7b (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 'news/views.py')
-rw-r--r-- | news/views.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/news/views.py b/news/views.py index c0230f1e..74bec058 100644 --- a/news/views.py +++ b/news/views.py @@ -76,7 +76,7 @@ def view_redirect(request, object_id): @require_POST def preview(request): data = request.POST.get('data', '') - markup = markdown.markdown(data, safe_mode=True) + markup = markdown.markdown(data, safe_mode=True, enable_attributes=False) return HttpResponse(markup) # vim: set ts=4 sw=4 et: |