Merge "Fix dictionary changed size during iteration error with Python 3"
This commit is contained in:
commit
56aee2e7cc
|
@ -212,7 +212,7 @@ def clear_forms_data(func):
|
|||
LOG.debug('Clearing forms data for application {0}.'.format(fqn))
|
||||
services.get_apps_data(request)[app_id] = {}
|
||||
LOG.debug('Clearing any leftover wizard step data.')
|
||||
for key in request.session.keys():
|
||||
for key in list(request.session.keys()):
|
||||
# TODO(tsufiev): unhardcode the prefix for wizard step data
|
||||
if key.startswith('wizard_wizard'):
|
||||
request.session.pop(key)
|
||||
|
|
Loading…
Reference in New Issue