#21117: FetchFromCacheMiddleware breaks django.contrib.formtools tests
-----------------------------------+-------------------------------
Reporter: dakinsloss@… | Owner: nobody
Type: Bug | Status: new
Component: contrib.formtools | Version: 1.5
Severity: Normal | Keywords: cache, wizardview
Triage Stage: Unreviewed | Has patch: 0
Easy pickings: 0 | UI/UX: 0
-----------------------------------+-------------------------------
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.
--
Ticket URL: <https://code.djangoproject.com/ticket/21117>
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 post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/063.5d2027d1ee3c212ff647bbea15e6505e%40djangoproject.com.
For more options, visit https://groups.google.com/groups/opt_out.