diff options
author | Elrond <elrond+mediagoblin.org@samba-tng.org> | 2012-02-13 13:42:59 +0100 |
---|---|---|
committer | Elrond <elrond+mediagoblin.org@samba-tng.org> | 2012-02-18 12:41:25 +0100 |
commit | 1e72e075f8d542f4aa1ad0262f4fd1a5645cc731 (patch) | |
tree | 71a3dc08526cdb88452daeae939c7a9263a766c1 /mediagoblin/edit/views.py | |
parent | e61ab0998b77eaf18268001fd2d70917c3cd3e37 (diff) | |
download | mediagoblin-1e72e075f8d542f4aa1ad0262f4fd1a5645cc731.tar.lz mediagoblin-1e72e075f8d542f4aa1ad0262f4fd1a5645cc731.tar.xz mediagoblin-1e72e075f8d542f4aa1ad0262f4fd1a5645cc731.zip |
Drop pre-rendered html: MediaEntry.description_html
After a bit of discussion, we decided to drop the
pre-rendered html from the database and render it on
the fly.
In another step, we will use some proper caching method to
cache this stuff.
This commit affects the MediaEntry.description_html part.
Diffstat (limited to 'mediagoblin/edit/views.py')
-rw-r--r-- | mediagoblin/edit/views.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/mediagoblin/edit/views.py b/mediagoblin/edit/views.py index 47761f23..3df36e8e 100644 --- a/mediagoblin/edit/views.py +++ b/mediagoblin/edit/views.py @@ -34,7 +34,7 @@ from mediagoblin.tools.response import render_to_response, redirect from mediagoblin.tools.translate import pass_to_ugettext as _ from mediagoblin.tools.text import ( clean_html, convert_to_tag_list_of_dicts, - media_tags_as_string, cleaned_markdown_conversion) + media_tags_as_string) from mediagoblin.tools.licenses import SUPPORTED_LICENSES @@ -72,9 +72,6 @@ def edit_media(request, media): media.tags = convert_to_tag_list_of_dicts( request.POST.get('tags')) - media.description_html = cleaned_markdown_conversion( - media.description) - media.license = unicode(request.POST.get('license', '')) or None media.slug = unicode(request.POST['slug']) |