#37037: decorator_from_middleware() docs contain stale reference to Django 1.9
-------------------------------------+-------------------------------------
Reporter: EoinShaughs | Type:
| Cleanup/optimization
Status: new | Component:
| Documentation
Version: 6.0 | Severity: Normal
Keywords: | Triage Stage:
| Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
The docstring for decorator_from_middleware() in docs/ref/utils.txt states
it "assumes middleware that's compatible with the old style of Django 1.9
and earlier", which is misleading. MIDDLEWARE_CLASSES was removed in
Django 2.0, and the function works with any middleware implementing the
standard hook methods. The source code docstring in
django/utils/decorators.py contains no such restriction.
--
Ticket URL: <
https://code.djangoproject.com/ticket/37037>
Django <
https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.