forked from orbit-oss/flask
changelog for blueprint registered name
This commit is contained in:
parent
67b0b7e30d
commit
63b306743f
3 changed files with 30 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue