diff options
| author | François Freitag <mail@franek.fr> | 2018-09-19 10:53:05 +0200 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2018-12-21 19:01:11 -0500 |
| commit | e671337e8b35427b379303cbf6808855f04083e8 (patch) | |
| tree | fb814965339eef4f86f47032ef83ea9d20235e61 /docs/releases/2.2.txt | |
| parent | 19e863a844db137045499276f0b0494b180f3f1a (diff) | |
Fixed #29750 -- Added View.setup() hook for class-based views.
Diffstat (limited to 'docs/releases/2.2.txt')
| -rw-r--r-- | docs/releases/2.2.txt | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/docs/releases/2.2.txt b/docs/releases/2.2.txt index 21786d6d63..b144eb6234 100644 --- a/docs/releases/2.2.txt +++ b/docs/releases/2.2.txt @@ -166,7 +166,10 @@ Forms Generic Views ~~~~~~~~~~~~~ -* ... +* The new :meth:`View.setup <django.views.generic.base.View.setup>` hook + initializes view attributes before calling + :meth:`~django.views.generic.base.View.dispatch`. It allows mixins to setup + instance attributes for reuse in child classes. Internationalization ~~~~~~~~~~~~~~~~~~~~ |
