changelog for blueprint registered name

This commit is contained in:
David Lord 2021-05-20 11:05:36 -07:00 committed by pgjones
parent 67b0b7e30d
commit 63b306743f
3 changed files with 30 additions and 0 deletions

View file

@ -1019,6 +1019,12 @@ class Flask(Scaffold):
:class:`~flask.blueprints.BlueprintSetupState`. They can be
accessed in :meth:`~flask.Blueprint.record` callbacks.
.. versionchanged:: 2.0.1
The ``name`` option can be used to change the (pre-dotted)
name the blueprint is registered with. This allows the same
blueprint to be registered multiple times with unique names
for ``url_for``.
.. versionadded:: 0.7
"""
blueprint.register(self, options)