Skip to content

Commit

Permalink
Labels for existing licence based on journeys
Browse files Browse the repository at this point in the history
  • Loading branch information
Morgan Rees authored and Morgan Rees committed Sep 3, 2024
1 parent f73973b commit 4149694
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -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,
Expand Down Expand Up @@ -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 "
Expand Down

0 comments on commit 4149694

Please sign in to comment.