diff options
| author | Ville Skyttä <ville.skytta@iki.fi> | 2016-08-09 15:06:47 +0300 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2016-08-09 08:06:47 -0400 |
| commit | f95bd89e827d6ee46cc6c736dadc25a10ae25fc9 (patch) | |
| tree | e1526e9d8f86a5c4a38a2117794d56bdf8e1e4f9 /docs | |
| parent | 8c3bc5cd7801a307a0bc2969abebe7a6ca48d17f (diff) | |
Fixed #27041 -- Documented that built-in middleware are compatible with MIDDLEWARE and MIDDLEWARE_CLASSES.
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/topics/http/middleware.txt | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/docs/topics/http/middleware.txt b/docs/topics/http/middleware.txt index 1f79256027..3ead020838 100644 --- a/docs/topics/http/middleware.txt +++ b/docs/topics/http/middleware.txt @@ -311,7 +311,8 @@ Upgrading pre-Django 1.10-style middleware Django provides ``django.utils.deprecation.MiddlewareMixin`` to ease creating middleware classes that are compatible with both :setting:`MIDDLEWARE` and the -old :setting:`MIDDLEWARE_CLASSES`. +old :setting:`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``. |
