pallets-eco / wtforms

A flexible forms validation and rendering library for Python.
https://wtforms.readthedocs.io
BSD 3-Clause "New" or "Revised" License
1.51k stars 395 forks source link

Fix SelectField choice backwards compatibility #816

Closed aminalaee closed 11 months ago

aminalaee commented 11 months ago

Related to: https://github.com/wtforms/wtforms/issues/811

Fixes backwards compatiblity to SelectField choices to handle render_kw argument.

mapio commented 11 months ago

This patch solves so many problems with other libraries using WTF (Flask ecosystem). So please accept it as soon as possible!

azmeuk commented 11 months ago

I added a deprecation warning and released this under 3.1.1 Thank you for your feedbacks