FetchFromCacheMiddleware breaks django.contrib.formtools tests
|Reported by:||Owned by:||nobody|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
Including FetchFromCacheMiddleware (I have followed instructions to put it at the bottom of the middleware list) breaks django.contrib.formtools.tests (because the views get served out of the cache, not the database). Many of the tests rely on checking response.context's keys, which are not present for a cached version of the WizardView. Potential fix includes adding @never_cache (because these should not be cached anyways) to the WizardView, FormPreview, and FormWizard. However, this produces a regression for 14576 because the DummyRequest does not interact well with @never_cache.