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/submit | |
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/submit')
-rw-r--r-- | mediagoblin/submit/views.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/mediagoblin/submit/views.py b/mediagoblin/submit/views.py index cdd097ec..845400ca 100644 --- a/mediagoblin/submit/views.py +++ b/mediagoblin/submit/views.py @@ -28,7 +28,7 @@ _log = logging.getLogger(__name__) from werkzeug.utils import secure_filename from mediagoblin.db.util import ObjectId -from mediagoblin.tools.text import cleaned_markdown_conversion, convert_to_tag_list_of_dicts +from mediagoblin.tools.text import convert_to_tag_list_of_dicts from mediagoblin.tools.translate import pass_to_ugettext as _ from mediagoblin.tools.response import render_to_response, redirect from mediagoblin.decorators import require_active_login @@ -66,8 +66,6 @@ def submit_start(request): or unicode(splitext(filename)[0])) entry.description = unicode(request.POST.get('description')) - entry.description_html = cleaned_markdown_conversion( - entry.description) entry.license = unicode(request.POST.get('license', "")) or None |