aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristopher Allan Webber <cwebber@dustycloud.org>2011-07-09 09:20:22 -0500
committerChristopher Allan Webber <cwebber@dustycloud.org>2011-07-09 09:20:22 -0500
commit83d3922b6e18221456cd8092d78882912f04cf99 (patch)
tree497fe45b35974fe18b0daa961a48d8b702999e37
parent13ca6fb19549f458aa8a540990b550311c327a86 (diff)
parent0e1c036c7ae388b10940606dca28f1c638035a45 (diff)
downloadmediagoblin-83d3922b6e18221456cd8092d78882912f04cf99.tar.lz
mediagoblin-83d3922b6e18221456cd8092d78882912f04cf99.tar.xz
mediagoblin-83d3922b6e18221456cd8092d78882912f04cf99.zip
Merge remote branch 'remotes/gullydwarf-cfdv/437_slug_shouldnt_be_empty'
-rw-r--r--mediagoblin/edit/forms.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/mediagoblin/edit/forms.py b/mediagoblin/edit/forms.py
index d5e7f0a9..0ed52af1 100644
--- a/mediagoblin/edit/forms.py
+++ b/mediagoblin/edit/forms.py
@@ -23,7 +23,8 @@ class EditForm(wtforms.Form):
'Title',
[wtforms.validators.Length(min=0, max=500)])
slug = wtforms.TextField(
- 'Slug')
+ 'Slug',
+ [wtforms.validators.Required(message="The slug can't be empty")])
description = wtforms.TextAreaField('Description of this work')
class EditProfileForm(wtforms.Form):