diff --git a/django_app/apply_for_a_licence/forms/forms_existing_licence.py b/django_app/apply_for_a_licence/forms/forms_existing_licence.py index e4ebcc24..1c37aa79 100644 --- a/django_app/apply_for_a_licence/forms/forms_existing_licence.py +++ b/django_app/apply_for_a_licence/forms/forms_existing_licence.py @@ -1,6 +1,7 @@ from typing import Any from apply_for_a_licence.models import Licence +from apply_for_a_licence.utils import get_cleaned_data_for_step from core.forms.base_forms import BaseModelForm from crispy_forms_gds.layout import ( ConditionalQuestion, @@ -52,7 +53,7 @@ def __init__(self, *args: object, **kwargs: object) -> None: "any sanctioned services or export any sanctioned goods?" ) - if start_view := self.request.session.get("StartView", False): + if start_view := get_cleaned_data_for_step(self.request, "start"): if start_view.get("who_do_you_want_the_licence_to_cover") == "myself": self.held_existing_licence_label = ( "Have you, or has anyone else you've added, held a licence before "