add hidden input deletion_widget

This commit is contained in:
David Kennedy 2024-01-05 16:30:41 -05:00
parent 6692eebfe3
commit 4be47912dc
No known key found for this signature in database
GPG key ID: 6528A5386E66B96B

View file

@ -821,6 +821,9 @@ class BaseOtherContactsFormSet(RegistrarFormSet):
"contact_applications_information", "contact_applications_information",
] ]
def get_deletion_widget(self):
return forms.HiddenInput(attrs={"class": "deletion"})
def __init__(self, *args, **kwargs): def __init__(self, *args, **kwargs):
self.formset_data_marked_for_deletion = False self.formset_data_marked_for_deletion = False
self.application = kwargs.pop("application", None) self.application = kwargs.pop("application", None)