From e9268bea8b3883a6ae62d578617b168c5f36d107 Mon Sep 17 00:00:00 2001 From: David Kennedy Date: Wed, 22 Jan 2025 13:17:22 -0500 Subject: [PATCH] updated required attribute on state territory --- src/registrar/forms/domain.py | 2 +- src/registrar/forms/portfolio.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/registrar/forms/domain.py b/src/registrar/forms/domain.py index 711315632..20091a325 100644 --- a/src/registrar/forms/domain.py +++ b/src/registrar/forms/domain.py @@ -471,7 +471,7 @@ class DomainOrgNameAddressForm(forms.ModelForm): error_messages={ "required": ("Select the state, territory, or military post where your organization is located.") }, - widget=ComboboxWidget(), + widget=ComboboxWidget(attrs={"required":True}), ) class Meta: diff --git a/src/registrar/forms/portfolio.py b/src/registrar/forms/portfolio.py index 9d6c9ecdf..379e8053c 100644 --- a/src/registrar/forms/portfolio.py +++ b/src/registrar/forms/portfolio.py @@ -41,7 +41,7 @@ class PortfolioOrgAddressForm(forms.ModelForm): error_messages={ "required": ("Select the state, territory, or military post where your organization is located.") }, - widget=ComboboxWidget, + widget=ComboboxWidget(attrs={"required":True}), ) class Meta: