aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/submit
diff options
context:
space:
mode:
Diffstat (limited to 'mediagoblin/submit')
-rw-r--r--mediagoblin/submit/forms.py4
-rw-r--r--mediagoblin/submit/views.py5
2 files changed, 4 insertions, 5 deletions
diff --git a/mediagoblin/submit/forms.py b/mediagoblin/submit/forms.py
index e13d5425..0e0fd086 100644
--- a/mediagoblin/submit/forms.py
+++ b/mediagoblin/submit/forms.py
@@ -17,8 +17,6 @@
import wtforms
-from mediagoblin.util import convert_to_tag_list
-
class SubmitStartForm(wtforms.Form):
title = wtforms.TextField(
@@ -26,4 +24,4 @@ class SubmitStartForm(wtforms.Form):
[wtforms.validators.Length(min=0, max=500)])
description = wtforms.TextAreaField('Description of this work')
file = wtforms.FileField('File')
- tags = wtforms.TextField('Tags', filters=[convert_to_tag_list])
+ tags = wtforms.TextField('Tags')
diff --git a/mediagoblin/submit/views.py b/mediagoblin/submit/views.py
index cdd58786..46ec4cea 100644
--- a/mediagoblin/submit/views.py
+++ b/mediagoblin/submit/views.py
@@ -21,7 +21,8 @@ from string import split
from werkzeug.utils import secure_filename
from mediagoblin.util import (
- render_to_response, redirect, cleaned_markdown_conversion)
+ render_to_response, redirect, cleaned_markdown_conversion, \
+ convert_to_tag_list)
from mediagoblin.decorators import require_active_login
from mediagoblin.submit import forms as submit_forms, security
from mediagoblin.process_media import process_media_initial
@@ -59,7 +60,7 @@ def submit_start(request):
entry['media_type'] = u'image' # heh
entry['uploader'] = request.user['_id']
- entry['tags'] = split(request.POST.get('tags'))
+ entry['tags'] = convert_to_tag_list(request.POST.get('tags'))
# Save, just so we can get the entry id for the sake of using
# it to generate the file path