[https://docs.djangoproject.com/en/1.6/ref/contrib/formtools/form-wizard
/#wizard-files As documented], those temporary files are never deleted,
even upon wizard reset or completion.
I understand that it's not possible to clean temporary files in all cases
(i.e. incomplete wizard) but I think we should try to cleanup after
ourselves when possible. That is when `storage.reset` is explicitly
called.
Attaching a PR with a test and a documentation admonition.
--
Ticket URL: <https://code.djangoproject.com/ticket/22299>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
Comment (by charettes):
See https://github.com/django/django/pull/2451
--
Ticket URL: <https://code.djangoproject.com/ticket/22299#comment:1>
* stage: Unreviewed => Accepted
--
Ticket URL: <https://code.djangoproject.com/ticket/22299#comment:2>
* stage: Accepted => Ready for checkin
Comment:
Looks fine to me. With updated pull request, tests succeed on Python 2 and
3.
--
Ticket URL: <https://code.djangoproject.com/ticket/22299#comment:3>
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"fa8b4735287c92b03d23823de8a4e1168d1951d9"]:
{{{
#!CommitTicketReference repository=""
revision="fa8b4735287c92b03d23823de8a4e1168d1951d9"
Fixed #22299 -- Cleanup wizard temp files when possible.
Thanks to @erikr for the review.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/22299#comment:4>
Comment (by Florian Apolloner <florian@…>):
In [changeset:"c95a3fadb7356e766fe48fae69ce81355180f46a"]:
{{{
#!CommitTicketReference repository=""
revision="c95a3fadb7356e766fe48fae69ce81355180f46a"
[1.7.x] Fixed #22299 -- Cleanup wizard temp files when possible.
Thanks to @erikr for the review.
Backport of fa8b4735287c92b03d23823de8a4e1168d1951d9 from master.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/22299#comment:5>