#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.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion visit
https://groups.google.com/d/msgid/django-updates/0107019d9385fab8-16984308-9560-4df8-8e29-03bda6eca0b0-000000%40eu-central-1.amazonses.com.