From a2a5c74dc250957c1b1190e8525345b0a06be8ff Mon Sep 17 00:00:00 2001 From: gmurtaza00 <111306331+gmurtaza00@users.noreply.github.com> Date: Mon, 22 May 2023 03:01:44 -0400 Subject: [PATCH] Fixed country field type in application form to match state field (#3420) Fixed country field type in application address field so that it matches state field visually. Closes #3419 --- addressfield/widgets.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/addressfield/widgets.py b/addressfield/widgets.py index 6ae4290cc..f51540764 100644 --- a/addressfield/widgets.py +++ b/addressfield/widgets.py @@ -1,6 +1,5 @@ from django import forms from django_countries import countries -from django_select2.forms import Select2Widget class KeepOwnAttrsWidget(forms.Widget): @@ -9,7 +8,7 @@ class KeepOwnAttrsWidget(forms.Widget): return super().get_context(name, value, attrs) -class CountrySelectWithChoices(KeepOwnAttrsWidget, Select2Widget): +class CountrySelectWithChoices(KeepOwnAttrsWidget, forms.Select): is_required = True def __init__(self, *args, **kwargs): -- GitLab