From f9dd99e93f1dc4d41c06108b4e138bd1d5de55a3 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Mar 06 2015 15:59:08 +0000 Subject: Make the mail_to field optional as otherwise we cannot reset it --- diff --git a/progit/hooks/mail.py b/progit/hooks/mail.py index f325a53..6d6137d 100644 --- a/progit/hooks/mail.py +++ b/progit/hooks/mail.py @@ -50,7 +50,7 @@ class MailForm(wtf.Form): ''' Form to configure the mail hook. ''' mail_to = wtforms.TextField( 'Mail to *', - [wtforms.validators.Required()] + [wtforms.validators.Optional()] ) active = wtforms.BooleanField( 'Acive',