Merge pull request #3680 from pallets/feature/doc-fixes

Some small doc fixes
This commit is contained in:
David Lord 2020-07-08 06:56:11 -07:00 committed by GitHub
commit a12a34100a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 3 deletions

View file

@ -181,8 +181,8 @@ construction of progress bar.
Because the common pattern for file uploads exists almost unchanged in all
applications dealing with uploads, there is also a Flask extension called
`Flask-Uploads`_ that implements a full fledged upload mechanism with white and
blacklisting of extensions and more.
`Flask-Uploads`_ that implements a full fledged upload mechanism that
allows controlling with file extensions are allowed to be uploaded.
.. _jQuery: https://jquery.com/
.. _Flask-Uploads: https://flask-uploads.readthedocs.io/en/latest/

View file

@ -437,7 +437,8 @@ def get_flashed_messages(with_categories=False, category_filter=()):
`category_filter` parameter added.
:param with_categories: set to ``True`` to also receive categories.
:param category_filter: whitelist of categories to limit return values
:param category_filter: filter of categories to limit return values. Only
categories in the list will be returned.
"""
flashes = _request_ctx_stack.top.flashes
if flashes is None: