Fixes https://pagure.io/pagure/issue/1333
The code is a little bit messy but has been tested with flask-wtf 0.8 and 0.10 and wtforms 2.0. The unit-tests added should help us supporting the newer releases of both libraries.
Do you really need to split and reassemble? As the _ should be a blank string, this shouldn't be changing anything...
One remark, otherwise +1.
true, that's no longer needed but in a way it makes things explicit (especially with the changed one above)
Fair enough.
+1
Thanks :)
Pull-Request has been merged by pingou
Fixes https://pagure.io/pagure/issue/1333
The code is a little bit messy but has been tested with flask-wtf 0.8 and 0.10 and wtforms 2.0. The unit-tests added should help us supporting the newer releases of both libraries.