From 5b8cedccde2de7adada40a637ebf2d6486980be4 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Mar 19 2015 10:13:06 +0000 Subject: Add a form to upload files to progit --- diff --git a/progit/forms.py b/progit/forms.py index e7eef1f..52619e7 100644 --- a/progit/forms.py +++ b/progit/forms.py @@ -166,3 +166,10 @@ class DescriptionForm(wtf.Form): class ConfirmationForm(wtf.Form): pass + + +class UploadFileForm(wtf.Form): + ''' Form to upload a file. ''' + filestream = wtforms.FileField( + 'File', + [wtforms.validators.Required()])