Updating the confirm delete form: checkboxes shouldn't be required, make translatable
authorChristopher Allan Webber <cwebber@dustycloud.org>
Tue, 6 Sep 2011 04:20:08 +0000 (23:20 -0500)
committerChristopher Allan Webber <cwebber@dustycloud.org>
Tue, 6 Sep 2011 04:20:08 +0000 (23:20 -0500)
mediagoblin/user_pages/forms.py

index bf4566309d4b6feb514cf8b3675e9f869da740b3..57061d3409e61f16e634c6a2a83f99ad0b4a447b 100644 (file)
@@ -26,5 +26,5 @@ class MediaCommentForm(wtforms.Form):
 
 
 class ConfirmDeleteForm(wtforms.Form):
-    confirm = wtforms.BooleanField('I am sure I want to delete this',
-                                [wtforms.validators.Required()])
+    confirm = wtforms.BooleanField(
+        _('I am sure I want to delete this'))