From dc1e9c39e81593466cfc1994c2e4241fdc6b1c78 Mon Sep 17 00:00:00 2001 From: Michal Konečný Date: Feb 04 2022 12:17:05 +0000 Subject: Fix wtforms issue The Required validator is no longer available. This will use DataRequired instead Required. Signed-off-by: Michal Konečný --- diff --git a/pagure/forms.py b/pagure/forms.py index 458a74a..280ba4d 100644 --- a/pagure/forms.py +++ b/pagure/forms.py @@ -335,7 +335,7 @@ class RequestPullEditForm(RequestPullForm): branch_to = wtforms.SelectField( "Target branch", - [wtforms.validators.Required()], + [wtforms.validators.DataRequired()], choices=[], coerce=convert_value, ) @@ -964,7 +964,7 @@ class TriggerCIPRForm(PagureForm): self.comment.choices = choices comment = wtforms.SelectField( - "comment", [wtforms.validators.Required()], choices=[] + "comment", [wtforms.validators.DataRequired()], choices=[] )