Skip to content

Commit

Permalink
Merge pull request #3768 from uktrade/code-change-GREATUK-1528-no-cac…
Browse files Browse the repository at this point in the history
…he-guided-journey

Dont cache guided journey views
  • Loading branch information
davidu1975 authored Jan 8, 2025
2 parents 23dd25d + 1c0865a commit d0cf339
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions core/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down Expand Up @@ -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')
Expand Down Expand Up @@ -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'
Expand Down Expand Up @@ -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'
Expand Down Expand Up @@ -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'

Expand Down

0 comments on commit d0cf339

Please sign in to comment.