diff options
| author | Claude Paroz <claude@2xlibre.net> | 2019-09-26 19:06:35 +0200 |
|---|---|---|
| committer | Carlton Gibson <carlton@noumenal.es> | 2020-02-18 20:03:44 +0100 |
| commit | 4d973f593932285cd2f765400d915305d8e7333a (patch) | |
| tree | 1cc48fd9e979d77906e522ecad2689d156d1377f /docs/topics/http | |
| parent | a34cb5a6d408203f4fbdb364fc9768c026eda224 (diff) | |
Refs #26601 -- Deprecated passing None as get_response arg to middleware classes.
This is the new contract since middleware refactoring in Django 1.10.
Co-authored-by: Carlton Gibson <carlton.gibson@noumenal.es>
Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com>
Diffstat (limited to 'docs/topics/http')
| -rw-r--r-- | docs/topics/http/middleware.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/topics/http/middleware.txt b/docs/topics/http/middleware.txt index 3b96eae4e8..d72d39de5e 100644 --- a/docs/topics/http/middleware.txt +++ b/docs/topics/http/middleware.txt @@ -295,8 +295,8 @@ middleware classes that are compatible with both :setting:`MIDDLEWARE` and the old ``MIDDLEWARE_CLASSES``. All middleware classes included with Django are compatible with both settings. -The mixin provides an ``__init__()`` method that accepts an optional -``get_response`` argument and stores it in ``self.get_response``. +The mixin provides an ``__init__()`` method that requires a ``get_response`` +argument and stores it in ``self.get_response``. The ``__call__()`` method: |
