aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristopher Allan Webber <cwebber@dustycloud.org>2011-09-04 23:05:06 -0500
committerChristopher Allan Webber <cwebber@dustycloud.org>2011-09-04 23:05:06 -0500
commit7b80685ac544886cb6cfa00424c785e1d5fb5c9c (patch)
tree249e6207e1a7344106c39d5e1e43a3893f954ec5
parent6be33a778098e38b4951dd358c5016e9fcd280e6 (diff)
downloadmediagoblin-7b80685ac544886cb6cfa00424c785e1d5fb5c9c.tar.lz
mediagoblin-7b80685ac544886cb6cfa00424c785e1d5fb5c9c.tar.xz
mediagoblin-7b80685ac544886cb6cfa00424c785e1d5fb5c9c.zip
Added a description to the slug field on the media entry form.
-rw-r--r--mediagoblin/edit/forms.py11
1 files changed, 8 insertions, 3 deletions
diff --git a/mediagoblin/edit/forms.py b/mediagoblin/edit/forms.py
index 7bf3c6a8..f81d58b2 100644
--- a/mediagoblin/edit/forms.py
+++ b/mediagoblin/edit/forms.py
@@ -25,13 +25,17 @@ class EditForm(wtforms.Form):
title = wtforms.TextField(
_('Title'),
[wtforms.validators.Length(min=0, max=500)])
- slug = wtforms.TextField(
- _('Slug'),
- [wtforms.validators.Required(message=_("The slug can't be empty"))])
description = wtforms.TextAreaField('Description of this work')
tags = wtforms.TextField(
_('Tags'),
[tag_length_validator])
+ slug = wtforms.TextField(
+ _('Slug'),
+ [wtforms.validators.Required(message=_("The slug can't be empty"))],
+ description=_(
+ "The title part of this media's URL. "
+ "You usually don't need to change this."))
+
class EditProfileForm(wtforms.Form):
bio = wtforms.TextAreaField(
@@ -42,6 +46,7 @@ class EditProfileForm(wtforms.Form):
[wtforms.validators.Optional(),
wtforms.validators.URL(message='Improperly formed URL')])
+
class EditAttachmentsForm(wtforms.Form):
attachment_name = wtforms.TextField(
'Title')