From d082f4d244de8183b1c4e89a8855d5ef04759e1a Mon Sep 17 00:00:00 2001 From: Jochen Klar Date: Mon, 29 Jan 2024 15:18:58 +0100 Subject: [PATCH] Remove workspaces from session if cancel is used --- rdmo_radar/exports/providers.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/rdmo_radar/exports/providers.py b/rdmo_radar/exports/providers.py index 298bf27..9a2413a 100644 --- a/rdmo_radar/exports/providers.py +++ b/rdmo_radar/exports/providers.py @@ -242,6 +242,8 @@ def submit(self): ) if 'cancel' in self.request.POST: + self.pop_from_session(self.request, 'get') + self.pop_from_session(self.request, 'workspace_choices') return redirect('project', self.project.id) if form.is_valid():