aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/submit/forms.py
diff options
context:
space:
mode:
authorChristopher Allan Webber <cwebber@dustycloud.org>2011-07-30 13:09:01 -0500
committerChristopher Allan Webber <cwebber@dustycloud.org>2011-07-30 13:09:01 -0500
commit3cdf366acfb577e735abc7fee6c8395fa97c8b48 (patch)
tree7a7287235d3597cebc0272532971726e10110e47 /mediagoblin/submit/forms.py
parent482d53cd30229798ff58f9d6f3cbb3b86f94f218 (diff)
parentf99b5caeb68cb60d768f0e049388a6f4a8b68ac0 (diff)
downloadmediagoblin-3cdf366acfb577e735abc7fee6c8395fa97c8b48.tar.lz
mediagoblin-3cdf366acfb577e735abc7fee6c8395fa97c8b48.tar.xz
mediagoblin-3cdf366acfb577e735abc7fee6c8395fa97c8b48.zip
Merge branch 'remotes/gullydwarf-cfdv/f360_tagging' (early part) into mergetags
Conflicts: mediagoblin/config_spec.ini mediagoblin/edit/views.py mediagoblin/util.py
Diffstat (limited to 'mediagoblin/submit/forms.py')
-rw-r--r--mediagoblin/submit/forms.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/mediagoblin/submit/forms.py b/mediagoblin/submit/forms.py
index 3fd9ea49..1a5a7f4e 100644
--- a/mediagoblin/submit/forms.py
+++ b/mediagoblin/submit/forms.py
@@ -16,6 +16,7 @@
import wtforms
+from mediagoblin.util import tag_length_validator, TOO_LONG_TAG_WARNING
class SubmitStartForm(wtforms.Form):
@@ -24,3 +25,6 @@ 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',
+ [tag_length_validator])