add View.init_every_request attribute

This commit is contained in:
David Lord 2022-06-06 11:04:04 -07:00
parent aab1d9935e
commit 6e23239567
No known key found for this signature in database
GPG key ID: 7A1C87E3F5BC42A8
3 changed files with 61 additions and 13 deletions

View file

@ -22,7 +22,9 @@ Unreleased
:issue:`4571`
- ``before_first_request`` is deprecated. Run setup code when creating
the application instead. :issue:`4605`
- Added the ``View.init_every_request`` class attribute. If a view
subclass sets this to ``False``, the view will not create a new
instance on every request. :issue:`2520`.
Version 2.1.3
-------------