From 88ad604d0064b4612ab2df4f364a3191e82b307c Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Mar 30 2015 21:35:38 +0000 Subject: Add a generic CommentForm used when commenting to a ticket by email --- diff --git a/pagure/forms.py b/pagure/forms.py index d57a74d..507698d 100644 --- a/pagure/forms.py +++ b/pagure/forms.py @@ -178,3 +178,10 @@ class ProjectCommentForm(wtf.Form): 'Email', [wtforms.validators.Required()] ) + + +class CommentForm(wtf.Form): + ''' Form to upload a file. ''' + comment = wtforms.FileField( + 'Comment', + [wtforms.validators.Required()])