Commit 1be1c599 authored by Bryan  BRANCOTTE's avatar Bryan BRANCOTTE

Fallback to Intro when steps have been migrated in the contribution mode

parent 9f9a9166
......@@ -1096,6 +1096,13 @@ class DataSourceWizard(wizard_views.NamedUrlSessionWizardView):
template_name = 'viralhostrangedb/wizard_form.html'
file_storage = storage.FileSystemStorage(location=os.path.join(tempfile.gettempdir(), 'viralhostrangedb_wizard'))
def dispatch(self, request, *args, **kwargs):
try:
return super().dispatch(request, *args, **kwargs)
except KeyError:
self.storage.reset()
return super().dispatch(request, *args, **kwargs)
def get_context_data(self, form, step=None, **kwargs):
context = super().get_context_data(form=form, step=step, **kwargs)
context["submit_text"] = _("Next")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment