Fixed #20126 -- XViewMiddleware moved to django.contrib.admindocs.middleware

Tested under 2.7 and 3.3.