Skip to content

Commit

Permalink
Add nocache_page decorator to Guided Journey views
Browse files Browse the repository at this point in the history
  • Loading branch information
davidu1975 committed Jan 7, 2025
1 parent 2907cf2 commit 1c0865a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 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

0 comments on commit 1c0865a

Please sign in to comment.