diff --git a/core/views.py b/core/views.py index a719fee79..d6bbd7a64 100644 --- a/core/views.py +++ b/core/views.py @@ -765,6 +765,7 @@ def get(self, *args, **kwargs): @method_decorator(csrf_exempt, name='dispatch') +@method_decorator(nocache_page, name='get') class GuidedJourneyStep1View(GuidedJourneyMixin, FormView): form_class = forms.GuidedJourneyStep1Form template_name = 'domestic/contact/export-support/guided-journey/step-1.html' @@ -829,6 +830,7 @@ def form_valid(self, form): return super().form_valid(form) +@method_decorator(nocache_page, name='get') class GuidedJourneyStep1GetView(View): def get(self, request): sector = request.GET.get('sector') @@ -856,6 +858,7 @@ def get(self, request): return HttpResponseRedirect(reverse_lazy('core:guided-journey-step-1')) +@method_decorator(nocache_page, name='get') class GuidedJourneyStep2View(GuidedJourneyMixin, FormView): form_class = forms.GuidedJourneyStep2Form template_name = 'domestic/contact/export-support/guided-journey/step-2.html' @@ -916,6 +919,7 @@ def form_valid(self, form): return super().form_valid(form) +@method_decorator(nocache_page, name='get') class GuidedJourneyStep3View(GuidedJourneyMixin, FormView): form_class = forms.GuidedJourneyStep3Form template_name = 'domestic/contact/export-support/guided-journey/step-3.html' @@ -943,6 +947,7 @@ def form_valid(self, form): return super().form_valid(form) +@method_decorator(nocache_page, name='get') class GuidedJourneyStep4View(GuidedJourneyMixin, TemplateView): template_name = 'domestic/contact/export-support/guided-journey/step-4.html'