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)
Fixes #103
Form wizards can fail with an uncaught
KeyError
if the session is flushed in thedone
method (e.g. usingrequest.session.flush()
, ordjango.contrib.auth.logout()
). AKeyError
occurs because django-formtools deletes the data it stores in the session by first accessing them(!) (reference)