Move XViewMiddleware to django.contrib.admindocs.middleware
|Reported by:||Aymeric Augustin||Owned by:||Łukasz Langa|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
This middleware is written for by admindocs, and I don't think it has any other uses.
This change would:
- remove a dependency of core on contrib -- see the first bullet point of https://code.djangoproject.com/ticket/8713#comment:13
- make the middleware reference docs more focused
This requires a trivial deprecation path.