Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update wtforms to 2.2.1 #4141

Merged
merged 5 commits into from
Jun 13, 2018
Merged

Update wtforms to 2.2.1 #4141

merged 5 commits into from
Jun 13, 2018

Conversation

pyup-bot
Copy link
Contributor

@pyup-bot pyup-bot commented Jun 7, 2018

This PR updates WTForms from 2.1 to 2.2.1.

Changelog

2.2

-----------

Released June 2nd, 2018

-   Merged new and updated translations from the community.
-   Passing ``data_`` args to render a field converts all the
 underscores to hyphens when rendering the HTML attribute, not just
 the first one. ``data_foo_bar`` becomes ``data-foo-bar``. (`248`_)
-   The :class:`~validators.UUID` validator uses the :class:`uuid.UUID`
 class instead of a regex. (`251`_)
-   :class:`~fields.SelectField` copies the list of ``choices`` passed
 to it so modifying an instance's choices will not modify the global
 form definition. (`286`_)
-   Fields call :meth:`~fields.Field.process_formdata` even if the raw
 data is empty. This makes :class:`~fields.StringField` default to an
 empty string instead of ``None``. (`280`_)
-   Added a :class:`~fields.MultipleFileField` to handle a multi-file
 input. :class:`~fields.FileField` continues to handle only one
 value. The underlying :class:`~widgets.FileInput` widget gained a
 ``multiple`` argument. (`281`_)
-   :class:`~fields.SelectField` choices can contain HTML (MarkupSafe
 ``Markup`` object or equivalent API) and will be rendered properly.
 (`302`_)
-   :class:`~fields.TimeField` and
 :class:`html5.TimeField <fields.html5.TimeField>` were added.
 (`254`_)
-   Improved :class:`~validators.Email`. Note that it is still
 unreasonable to validate all emails with a regex and you should
 prefer validating by actually sending an email. (`294`_)
-   Widgets render the ``required`` attribute when using a validator
 that provides the ``'required'`` flag, such as
 :class:`~validators.DataRequired`. (`361`_)
-   Fix a compatibility issue with SQLAlchemy 2.1 that caused
 :class:`~ext.sqlalchemy.fields.QuerySelectField` to fail with
 ``ValueError: too many values to unpack``. (`391`_)

.. _248: https://github.com/wtforms/wtforms/pull/248
.. _251: https://github.com/wtforms/wtforms/pull/251
.. _254: https://github.com/wtforms/wtforms/pull/254
.. _280: https://github.com/wtforms/wtforms/pull/280
.. _281: https://github.com/wtforms/wtforms/pull/281
.. _286: https://github.com/wtforms/wtforms/pull/286
.. _294: https://github.com/wtforms/wtforms/pull/294
.. _302: https://github.com/wtforms/wtforms/pull/302
.. _361: https://github.com/wtforms/wtforms/pull/361
.. _391: https://github.com/wtforms/wtforms/pull/391
Links

@pyup-bot pyup-bot mentioned this pull request Jun 7, 2018
@ewdurbin ewdurbin requested a review from dstufft June 13, 2018 14:28
@ewdurbin ewdurbin merged commit 680d9f4 into master Jun 13, 2018
@ewdurbin ewdurbin deleted the pyup-update-wtforms-2.1-to-2.2.1 branch June 13, 2018 17:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants