From 6ea90a178c19cb4d3430614aac411ffa0f408f12 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Oct 05 2016 08:53:29 +0000 Subject: Allow the returned close_status to be None and not 'None' --- diff --git a/pagure/forms.py b/pagure/forms.py index 2a63713..682beb2 100644 --- a/pagure/forms.py +++ b/pagure/forms.py @@ -304,7 +304,8 @@ class UpdateIssueForm(FlaskForm): close_status = wtforms.SelectField( 'Closed as', [wtforms.validators.Optional()], - choices=[] + choices=[], + coerce=lambda val: unicode(val) if val else None ) def __init__(self, *args, **kwargs):