jazzband / django-formtools

A set of high-level abstractions for Django forms
https://django-formtools.readthedocs.io
BSD 3-Clause "New" or "Revised" License
797 stars 135 forks source link

Handle case where reset attempts to access deleted session data #140

Closed cwfoo closed 1 year ago

cwfoo commented 5 years ago

Fixes #103

Form wizards can fail with an uncaught KeyError if the session is flushed in the done method (e.g. using request.session.flush(), or django.contrib.auth.logout()). A KeyError occurs because django-formtools deletes the data it stores in the session by first accessing them(!) (reference)