diff --git a/src/registrar/forms/application_wizard.py b/src/registrar/forms/application_wizard.py index 69e51697f..625b2179d 100644 --- a/src/registrar/forms/application_wizard.py +++ b/src/registrar/forms/application_wizard.py @@ -374,7 +374,7 @@ class BaseAlternativeDomainFormSet(RegistrarFormSet): cleaned = post_data.cleaned_data if post_data is not None else {} domain = cleaned.get("alternative_domain", None) - # matching database object exists, update it + # matching database object exists, update or delete it if db_obj is not None and isinstance(domain, str): entry_was_erased = domain.strip() == "" if entry_was_erased: diff --git a/src/registrar/templates/application_other_contacts.html b/src/registrar/templates/application_other_contacts.html index cbc3887a2..1b3ec65f4 100644 --- a/src/registrar/templates/application_other_contacts.html +++ b/src/registrar/templates/application_other_contacts.html @@ -11,6 +11,7 @@
{% csrf_token %} {{ forms.0.management_form }} + {# forms.0 is a formset and this iterates over its forms #} {% for form in forms.0.forms %}