aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/submit
diff options
context:
space:
mode:
Diffstat (limited to 'mediagoblin/submit')
-rw-r--r--mediagoblin/submit/forms.py1
-rw-r--r--mediagoblin/submit/views.py2
2 files changed, 3 insertions, 0 deletions
diff --git a/mediagoblin/submit/forms.py b/mediagoblin/submit/forms.py
index 3fd9ea49..0e0fd086 100644
--- a/mediagoblin/submit/forms.py
+++ b/mediagoblin/submit/forms.py
@@ -24,3 +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')
diff --git a/mediagoblin/submit/views.py b/mediagoblin/submit/views.py
index 4c7476b0..cdd58786 100644
--- a/mediagoblin/submit/views.py
+++ b/mediagoblin/submit/views.py
@@ -16,6 +16,7 @@
from os.path import splitext
from cgi import FieldStorage
+from string import split
from werkzeug.utils import secure_filename
@@ -58,6 +59,7 @@ def submit_start(request):
entry['media_type'] = u'image' # heh
entry['uploader'] = request.user['_id']
+ entry['tags'] = split(request.POST.get('tags'))
# Save, just so we can get the entry id for the sake of using
# it to generate the file path